diff options
| author | Teddy Wing | 2015-04-14 17:45:33 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-04-14 17:45:33 -0400 |
| commit | 55957ad3f8fb92f4b94f73e6637a9b54fa5bdefc (patch) | |
| tree | 94922bdc7d76f4cccfa0bb5be003923f6293ed4d /main.rb | |
| parent | 4ef14b7315bb6bdb5a717f7d0ed5a4ff8d419731 (diff) | |
| download | tic-tac-toe-55957ad3f8fb92f4b94f73e6637a9b54fa5bdefc.tar.bz2 | |
Add some empty test for Player movement
Test some code for an API concept for player, ideas for tests of the
`Player#move` method.
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 |
