rust-chessground
A chessboard widget for Relm/GTK. Inspired by chessground.js.
Features
- Uses vocabulary from Shakmaty but is chess rule agnostic
- Can show legal move hints
- Check hints
- Move pieces by click
- Move pieces by drag and drop
- Minimum distance
- Piece ghosts
- Draw circles and arrows on the board
- Integrated promotion dialog
- Smooth animations
Only a minimum of the features is exposed in the public API. Feel free to request more.
Documentation
Example
A board that lets the user freely move pieces. Run with cargo run --example editor
.
extern crate gtk;
extern crate chessground;
extern crate relm;
extern crate relm_attributes;
extern crate relm_derive;
extern crate shakmaty;
use *;
use Widget;
use widget;
use ;
use ;
use *;
Piece sets
Set | Author | License |
---|---|---|
Merida | Armando Hernandez Marroquin | GPL-2+ |
License
Chessground is licensed under the GPL-3.0 (or any later version at your option). See the COPYING file for the full license.