2 stable releases

1.0.1 Aug 24, 2024

#322 in Data structures

Download history 234/week @ 2024-08-20 22/week @ 2024-08-27 8/week @ 2024-09-10

264 downloads per month

MIT license

175KB
3K SLoC


RChess

A Chess Library Written in Rust


RChess is a Rust-based library designed for applications that need to work with chess games or boards, such as UCI GUIs or online chess platforms.

Note: RChess is currently under active development, with many more features planned. The API is subject to change.

If you encounter any bugs, have suggestions for improving code readability or performance, or would like to contribute, we encourage you to create a pull request. For significant API changes or feature requests, please open an issue on GitHub.


Getting Started

Documentation for RChess can be found here.

Installation

Add the following to your Cargo.toml:

[dependencies]
rchess = "1.0.0"

Usage Example

use rchess::ChessGame;

fn main() {
    // Create a new chess game.
    let mut game = ChessGame::new();
    
    // Get the legal moves for the current position.
    let moves = game.moves();
    
    // Make a move.
    game.make_move(moves[0]);
}

Contributing

We welcome contributions! Please adhere to the following guidelines:

  • Bug Reports & Feature Requests: Open an issue on the GitHub Issues page.
  • Code Contributions: Fork the repository and create a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Dependencies

~255–710KB
~17K SLoC