rustio rustio.net

chess_perft vs chess vs candidate

Side-by-side comparison of Rust crates

40
chess_perft
growingv3.1.1

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.

52
chess
growingv3.2.0

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.

45
candidate
growingv0.0.5

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_perftchesscandidate
Health Score405245
Total Downloads25.8K146.6K6.8K
30d Downloads204.6K7
Dependents01880
Releases16365
Last Updated2448d ago1842d ago1214d ago
Age9y 10m9y 10m3y 4m

Health Breakdown

chess_perft
Maintenance
4
Quality
19
Community
3
Popularity
5
Documentation
9
chess
Maintenance
6
Quality
19
Community
9
Popularity
6
Documentation
12
candidate
Maintenance
8
Quality
16
Community
3
Popularity
5
Documentation
13

Technical Details

chess_perftchesscandidate
Version3.1.13.2.00.0.5
Stable (≥1.0)✓ Yes✓ Yes✗ No
LicenseLGPL-3.0+MITMIT
Dependencies457
Crate Size24KB46KB53KB
Features003
Yanked %0.0%0.0%0.0%
Edition201820182021
MSRV
Owners111

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_perft, chess, candidate have not been updated in over a year.
  • candidate is pre-1.0 — API may change.