Decision Workspace
chess_perft vs atomic-movegen vs chess
Side-by-side comparison of Rust crates
This package runs a 'perft' test on a particular chess position. This makes every move out to a certain depth, and counts the number of leaf-nodes. This is used to verify that move generation is correct and fast. This also (optionally) verifies that the hashing function produces unique values for each position.
Legal move generation for atomic chess.
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.
Core Metrics
| chess_perft | atomic-movegen | chess | |
|---|---|---|---|
| Health Score | 40 | 53 | 52 |
| Total Downloads | 25.9K | 260 | 181.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 223 |
| Releases | 16 | 6 | 36 |
| Last Updated | 2644d ago | 31d ago | 2038d ago |
| Age | 10y 4m | 3m | 10y 4m |
Health Breakdown
Technical Details
| chess_perft | atomic-movegen | chess | |
|---|---|---|---|
| Version | 3.1.1 | 2.2.0 | 3.2.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | LGPL-3.0+ | MIT | MIT |
| Dependencies | 4 | 0 | 5 |
| Crate Size | 24KB | 88KB | 46KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2018 |
| MSRV | — | 1.85 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •atomic-movegen leads with a health score of 53/100, but none of the options score above 80.
- •chess has the most downloads (181.8K), suggesting wider adoption.
- •chess is depended on by 223 crates — strongest ecosystem trust.
- •⚠ chess_perft, chess have not been updated in over a year.