diff options
Diffstat (limited to 'main.rb')
| -rw-r--r-- | main.rb | 6 | 
1 files changed, 4 insertions, 2 deletions
| @@ -2,11 +2,13 @@ require_relative 'board'  require_relative 'player'  board = Board.new -player_1 = Player.new -player_2 = Player.new +player_1 = Player.new('X', board) +player_2 = Player.new('O', board)  board.current_player = player_1  until board.winner    coordinates = gets.chomp    coordinates = board.transform_coordinates(coordinates) +   +  board.current_player.move(coordinates)  end | 
