Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Life {
- private int generation;
- public Life(LifeBoard board) {
- public void newGeneration() {
- board.increaseGeneration();
- }
- public void flip(int row, int col) {
- if(board.get(row, col) == true) {
- board.put(row, col,false);
- }
- else if(board.get(row, col) == false) {
- board.put(row, col,true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement