diff options
| author | Teddy Wing | 2015-04-14 18:40:47 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2015-04-14 18:40:47 -0400 | 
| commit | da8707f50f40b325df86efaa26f821142c89662c (patch) | |
| tree | 828b54e083323275af828d9377a9ded23408b2a5 /spec/board_spec.rb | |
| parent | 07885399cb161c38244a9c8a564939c7b98bf4ba (diff) | |
| download | tic-tac-toe-da8707f50f40b325df86efaa26f821142c89662c.tar.bz2 | |
Flesh out the game loop
* Use a new, currently empty `Board#winner?` method as our loop
  condition
* Add `Player#insignia` so we can print the correct player insignia
  depending on who the current player is
* Print the board and a prompt for coordinates
* Switch the current player after a player finishes moving
Diffstat (limited to 'spec/board_spec.rb')
| -rw-r--r-- | spec/board_spec.rb | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/spec/board_spec.rb b/spec/board_spec.rb index ae1bdd0..09f50e1 100644 --- a/spec/board_spec.rb +++ b/spec/board_spec.rb @@ -57,4 +57,7 @@ EOF        @board.instance_variable_get(:@board)[1][2].must_equal value      end    end +   +  describe '#winner?' do +  end  end | 
