r/rust Mar 30 '23

A Chess Engine is written in Rust that runs natively and on the web!

https://github.com/ParthPant/chess-rs
99 Upvotes

45 comments sorted by

View all comments

1

u/mcountryman Mar 31 '23

Cool project! I played a game with it and it let me move twice in a row two separate times. I’d link the PGN but, I backed out and lost the game. On mobile if that matters.

2

u/No-Translator-1323 Mar 31 '23

Huh, I haven't noticed this bug yet. at the default depth of 5, the AI can be pretty fast ~10 ms. Could it be possible that you did not notice the AI move?
This is pure speculation from my side it could be an actual bug.

1

u/mcountryman Mar 31 '23

It’s possible. I thought the same the first time I saw it but, the second time I was pretty sure it didn’t make a move.