The program verifies and respects the official chess rules indicated on the following websites:
- https://www.scuolascacchipordenone.eu/le-regole.html
- https://www.scuolascacchipordenone.eu/le-mosse-speciali-.html
- https://www.scuolascacchipordenone.eu/scacco-scaccomatto-patta-.html
Download the file scacchi_definitivo.zip
Requirements:
- cmake
With CMake
- Navigate to the Feild_Progect folder and from the terminal run $cmake -S . -B ./build
- Enter the build folder ($ cd build)
- Compile with $ make
- Run $ ./Feild_Progect
Regarding the player versus computer mode, we have decided to include the following commands.
The possible combinations of letters for moves are:
- A1 B2: to move a piece from A1 to B2
- A1 B2 PP: to move a piece from A1 to B2 and propose a draw to the other player
- A1 MM: to display available moves for A1
- XX XX: to display the complete chessboard
- HE LP: to display the commands
- FF FF: to forfeit the game The letter format does not affect the commands (a = A).
This message can also be viewed within the program by typing HE LP.