A WORK IN PROGRESS!
a simple chess simulator built using the SDL2 graphics library
(Target operating system: Windows x64)
There is install-dependencies.bat script file in the repo that can be used to install SDL2 and SDL2_image using curl.
$ .\install-dependencies.bat
You can manually install all the dependencies from the links given above and place them in the middleware/SDL2 folder.
To compile this application make sure you have the Visual Stuio C++ compiler
installed, and your running a terminal instance that recognises cl.exe
To compile the program call the build.bat script from the main directory:
$ .\build.bat
make sure your calling the executale from the main project directory
To run this application:
$ .\bin\chess.exe
general settings
- x -> reset position on the board
- f -> flip the board
- Left-Arrow -> to look into the hisory of the game
- Right-Arrow -> to go to the latest position
- r -> reset the board to show the latest move
hold down any of the following key to promote to a different minor piece
- 1 -> promote to a Queen
- 2 -> promote to a Rook
- 3 -> promote to a Bishop
- 4 -> promote to a Knight
Note: When you are looking into the history of the game you cannot move the pieces (since branching is not handled yet). Just press 'r' to go to the latest move and the continue the game.
You can compile it for 32-bit, you will just have to change the path for SDL2 libs folders to point at 32-bit binaries in build.bat. where ever you see x64 just replace it with x86 and it should compile to x86 (Given you are using cl.exe in a x86 environment)