GithubHelp home page GithubHelp logo

arskiy / chess Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 2.0 143 KB

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

License: zlib License

Rust 77.80% Shell 0.67% HTML 21.53%
chess chess-ai rust sdl2 shakmaty

chess's Introduction

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

chess's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chess's Issues

Checklist of features

  • Organize code and make it more readable

  • Add castling

  • Add pawn promoting

  • Add en passant

  • Show possible squares the selected piece can move to

  • Make king's square red when it is on check

  • Make draw_error() work as expected

  • Make AI able to analyze end-game better

  • Add stalemate/draw/checkmate handling

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.