Board class to represent the game board
| name | description | default |
|---|---|---|
| self | ||
| m | ||
| n | ||
| init |
return the str representation of a Board object * represents a live cell, and a space represents a dead one
| name | description | default |
|---|---|---|
| self |
population — the number of live cells on the board
| name | description | default |
|---|---|---|
| self |
count the live neighbours of a cell
| name | description | default |
|---|---|---|
| self | ||
| x | ||
| y |
| name | description | default |
|---|---|---|
| self | ||
| x | ||
| y |
return board configuration for the next state
| name | description | default |
|---|---|---|
| self |
update the board configuration with the config for the next state
| name | description | default |
|---|---|---|
| self |
return whether there are any live cells or not
| name | description | default |
|---|---|---|
| self |