nickjamesio/Chess

Create a GameState class

Closed this issue · 1 comments

Implement GameState class. This will be useful when writing a UI. GameState object should let the UI know what is happening. State can be queried from ChessGame class

Return following info

  • If King in check and which king
  • If King in checkmate and which king
  • If draw occurred
  • The king that is in check or checkmate. Color, position
  • Winner. Player id, player color, player name

Ended up creating a MoveResult class instead that gets returned each time a move is performed