Skip to content

CieriA/rusty-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess with Rust

A Chess implementation on the terminal (pass-to-play), written in Rust.

Features

  • Grid display in the terminal
  • Two players
  • I/O to play the game
  • Every piece of Chess
  • Double pawn push
  • Castle
  • En passant
  • Pawn upgrade
  • Check, Checkmate and Stalemate
  • Tie by 50 moves rules
  • Every normal feature of chess not cited in the future features

Features to implement (Coming soon!)

  • Tie by repeated moves (3 or 5)
  • Tie by missing material (Now it only works when kings are the only piece on the board)
  • Minimax to implement a bot

Requirements

  • Rust (stable) — install via rustup

Building the project

Clone the repository and build it in release mode:

git clone https://github.com/CieriA/rusty-chess
cd rusty-chess
cargo build --release

Running the game

cargo run --release

Controls

  • A1-H8 / a1-h8 → to index the board from the terminal

Development notes

This project uses the following crates:

  • colored
  • indexmap

Docs

To build the documentation locally:

cargo doc --open

License

This project is licensed under the ISC License. For more info, see the LICENSE file.

About

Chess game written in Rust (on the terminal)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages