Set a cell to the live state
(self, y, x)
| 60 | self.scr.refresh() |
| 61 | |
| 62 | def set(self, y, x): |
| 63 | """Set a cell to the live state""" |
| 64 | if x < 0 or self.X <= x or y < 0 or self.Y <= y: |
| 65 | raise ValueError("Coordinates out of range %i,%i" % (y, x)) |
| 66 | self.state[x, y] = 1 |
| 67 | |
| 68 | def toggle(self, y, x): |
| 69 | """Toggle a cell's state between live and dead""" |
no outgoing calls
no test coverage detected