Skip to content

Group project for our OOP course, creating two-player chess using SFML.

License

Notifications You must be signed in to change notification settings

mortonjack/chess-OOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chess-OOP

C++ Visual Studio Code

Two-player chess.

Installation instructions

  1. Install SFML.
  2. Run make to compile and run the program.
  3. Afterwards, run chess.out to play.

How 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.

About

Group project for our OOP course, creating two-player chess using SFML.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published