Decision Workspace
chess-lib vs chess vs candidate
Side-by-side comparison of Rust crates
A chess movement generator library.
This is a fast chess move generator. It has a very good set of documentation, so you should take advantage of that. It (now) generates all lookup tabels with a build.rs file, which means that very little pseudo-legal move generation requires branching. There are some convenience functions that are exposed to, for example, find all the squares between two squares. This uses a copy-on-make style structure, and the Board structure is as slimmed down as possible to reduce the cost of copying the board. There are places to improve perft-test performance further, but I instead opt to be more feature-complete to make it useful in real applications. For example, I generate both a hash of the board and a pawn-hash of the board for use in evaluation lookup tables (using Zobrist hashing). There are two ways to generate moves, one is faster, the other has more features that will be useful if making a chess engine. See the documentation for more details.
This is a fast chess move generator. It has a very good set of documentation, so you should take advantage of that. It (now) generates all lookup tables with a build.rs file, which means that very little pseudo-legal move generation requires branching. There are some convenience functions that are exposed to, for example, find all the squares between two squares. This uses a copy-on-make style structure, and the Board structure is as slimmed down as possible to reduce the cost of copying the board. There are places to improve perft-test performance further, but I instead opt to be more feature-complete to make it useful in real applications. For example, I generate both a hash of the board and a pawn-hash of the board for use in evaluation lookup tables (using Zobrist hashing). There are two ways to generate moves, one is faster, the other has more features that will be useful if making a chess engine. See the documentation for more details.
Core Metrics
| chess-lib | chess | candidate | |
|---|---|---|---|
| Health Score | 40 | 52 | 45 |
| Total Downloads | 5.3K | 146.6K | 6.8K |
| 30d Downloads | 7 | 4.6K | 7 |
| Dependents | 0 | 188 | 0 |
| Releases | 4 | 36 | 5 |
| Last Updated | 906d ago | 1842d ago | 1214d ago |
| Age | 2y 9m | 9y 10m | 3y 4m |
Health Breakdown
Technical Details
| chess-lib | chess | candidate | |
|---|---|---|---|
| Version | 0.1.3 | 3.2.0 | 0.0.5 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 4 | 5 | 7 |
| Crate Size | 29KB | 46KB | 53KB |
| Features | 2 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •chess leads with a health score of 52/100, but none of the options score above 80.
- •chess is depended on by 188 crates — strongest ecosystem trust.
- •⚠ chess-lib, chess, candidate have not been updated in over a year.
- •chess-lib, candidate are pre-1.0 — API may change.