Skip to content

Instantly share code, notes, and snippets.

@thefonso
Created December 13, 2012 11:35
Show Gist options
  • Select an option

  • Save thefonso/4275876 to your computer and use it in GitHub Desktop.

Select an option

Save thefonso/4275876 to your computer and use it in GitHub Desktop.
place a move on the board and iterate the @i instance variable.
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