Skip to content
/ chess Public

Chess GUI using rust-sdl2 and chess AI using minimax.

License

Notifications You must be signed in to change notification settings

arskiy/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess - chess implemented in Rust.

Chess

From my research, this is the first ever Rust implementation of a Chess AI. This was made in 10 days as a Rust exercise.

Installation

Dependencies:

  • SDL2
  • SDL2_image

If you are on Linux or BSD, simply

git clone https://github.com/Arsukeey/chess.git

cd chess

sudo ./install.sh

and then simply run chess on your terminal.

If you are on Windows or Mac, download the "portable" or "windows" (according to your OS) release, download the sprites and put them in a folder called sprites, creating a path like this

- chess
|
|- - chess.exe
|- -
   | - sprites
     | - b_white.png
     | - ...

Gameplay

  • To play, simply drag and drop the pieces. If the movement isn't valid, the game won't let you play that move.
  • To castle, Drag the king to the rook.

Live Example:

Image