| % For each cell in an image |
| for Vp ∈ p |
| % Copy previous state |
| ; |
| ; |
| % Neighbors try to attack current cell |
| for Vq ∈ N(p) |
| if |
| end if |
| end for |
| end for |
| % For each cell in an image |
| for Vp ∈ p |
| % Copy previous state |
| ; |
| ; |
| % Neighbors try to attack current cell |
| for Vq ∈ N(p) |
| if |
| end if |
| end for |
| end for |