Two-player chess.
- Install SFML.
- Run
make
to compile and run the program. - Afterwards, run chess.out to play.
Click on a tile to select a piece, then click elsewhere to select a destination. If you click on an invalid tile, you will be able to select a different piece. White goes first, then players take it in turns. The game ends when either:
- The current player has no legal moves (checkmate/stalemate)
- Fifty moves have passed without any pieces being taken or pawns being moved up (draw, fifty move rule)
- The same board position has appeared three different times (draw, threefold repetition)
- One player resigns
- Both players agree to draw
If you close the program before finishing the game, you can continue where you left off by clicking "load". You can also click "save" before you close the program. If you don't do this, the game will attempt to automatically save your game.
If you've never played chess before, check out this article.