Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
A while back, I got into computer chess. I used Jordan Bray's neat chess crate for move generation, and was pretty satisfied until I took a look at the code. It's pretty good and all, but... So. Much. unsafe. Out of a mix of frustration and curiosity, I made it my next project to create my own chess move generation library. So... here it is, I guess: https://github.com/analog-hors/cozy-chess/ It's my first crate, so feedback would be appreciated! It's currently being used in my (weak) chess engine Tantabus.
A while back, I got into computer chess. I used Jordan Bray's neat chess crate for move generation, and was pretty satisfied until I took a look at the code. It's pretty good and all, but... So. Much. unsafe. Out of a mix of frustration and curiosity, I made it my next project to create my own chess move generation library. So... here it is, I guess: https://github.com/analog-hors/cozy-chess/ It's my first crate, so feedback would be appreciated! It's currently being used in my (weak) chess engine Tantabus.
A while back, I got into computer chess. I used Jordan Bray's neat chess crate for move generation, and was pretty satisfied until I took a look at the code. It's pretty good and all, but... So. Much. unsafe. Out of a mix of frustration and curiosity, I made it my next project to create my own chess move generation library. So... here it is, I guess: https://github.com/analog-hors/cozy-chess/ It's my first crate, so feedback would be appreciated! It's currently being used in my (weak) chess engine Tantabus.
I think it provides similar performance as chess, though I don't really want to give any hard numbers as apparently the system I benchmark on is not the most reliable for that. Nevertheless, depth 6 kiwipete ("r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"): chess: Result: 8031647685 Time: 30s 547ms shakmaty: Result: 8031647685 Time: 49s 669ms cozy-chess: Result: 8031647685 Time: 26s 673ms Tested using a modified version of Jordan Bray's chess_perft.
I think it provides similar performance as chess, though I don't really want to give any hard numbers as apparently the system I benchmark on is not the most reliable for that. Nevertheless, depth 6 kiwipete ("r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"): chess: Result: 8031647685 Time: 30s 547ms shakmaty: Result: 8031647685 Time: 49s 669ms cozy-chess: Result: 8031647685 Time: 26s 673ms Tested using a modified version of Jordan Bray's chess_perft.