aboutsummaryrefslogtreecommitdiffstats
path: root/player.rb
AgeCommit message (Collapse)Author
2015-04-14Flesh out the game loopTeddy Wing
* 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
2015-04-14Player: Add a `#move` method to move a piece to a cell on the boardTeddy Wing
Also add `Board#update_cell` to facilitate player movement.
2015-04-14Player: Add `initialize` method, use insignia constantsTeddy Wing
Add an `initialize` method to get rid of our test errors and use the constants we created in 231060de4c493a9c6ba3510a9be4d405517af5c6 when creating new `Player`s.
2015-04-14Player: Add constants for player insignias ('X' & 'O')Teddy Wing
2015-04-11Create main game loopTeddy Wing
* main.rb will be what we use to run the game. Add some setup and an idea for grabbing board coordinates to place a piece. * Add empty Player class to represent Xes and Os