From da8707f50f40b325df86efaa26f821142c89662c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 14 Apr 2015 18:40:47 -0400 Subject: 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 --- player.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player.rb') diff --git a/player.rb b/player.rb index 8146220..07301f8 100644 --- a/player.rb +++ b/player.rb @@ -4,6 +4,8 @@ class Player :o => 'O' } + attr_reader :insignia + def initialize(insignia, board) @insignia = insignia @board = board -- cgit v1.2.3