Created
December 13, 2012 11:35
-
-
Save thefonso/4275876 to your computer and use it in GitHub Desktop.
place a move on the board and iterate the @i instance variable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def move_as_somebody(board, player, empty_space) | |
| board.grid[empty_space] = player | |
| @i+=1 | |
| return board | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment