View Code? Open in Web Editor
NEW
License: Mozilla Public License 2.0
chessgame's Introduction
Game attributes features:
- 2 Moves ahead on first move
- Attack diagonally
- Enpassant
- Check all opponents pieces if they are a threat to the king
- If yes, check if the move the user wants to make, will evade the check.
- Loop through all own pieces to check if there is a possible move.
- If there isn't, game is over.
- Keep a list of all moves
- Test the move
- test check moves
- Save game
- Load game
- Restart game
PoC demonstrating game being playable
- White: F2 -> F3
- Black: E7 - E5
- White: G2 -> G4
- Black: D8 -> H4
chessgame's People
Watchers