rbaker26 / TicTacToe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game end

Autofire opened this issue · comments

Either when a player wins or when no more moves are possible, the game needs to end.

The UI probably could have some kind of notification, and then prompt to start a new game, or something like that.

Tasks

  • The game should check after every turn (or after 5th turn, whatever; doesn't really matter.)
  • The game should not continue after a player has won.
  • The user should be allowed to start a new game.
  • The game should end when the board fills up.

Done

The game should stop when a player wins or there is a tie. Also, all tasks are complete and relevant tests are written.

@rbaker26 I've assigned you because I know you already have code to check for a winner. (For the minimax.) I don't want to duplicate that code, so if you could plug that in sometime, that'd probably be good.