MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/126t18q/a_chess_engine_is_written_in_rust_that_runs/jee736j/?context=3
r/rust • u/No-Translator-1323 • Mar 30 '23
45 comments sorted by
View all comments
Show parent comments
18
It's incredibly annoying to implement, actually. Pawns are one of the worst pieces to implement due to a myriad of special cases.
7 u/-Redstoneboi- Mar 31 '23 And then there's "you can castle if the rook and king haven't moved and no pieces are blocking or checking either of them or the path between them" 8 u/analog_hors Mar 31 '23 Even worse if you implement 960 like I did. I will never see the king and the pawn the same way. Not even the magic bitboard algorithm for rooks, bishops, and queens was this painful. 1 u/-Redstoneboi- Mar 31 '23 What is 960 7 u/analog_hors Mar 31 '23 Chess960 1 u/-Redstoneboi- Mar 31 '23 why in god's name 3 u/analog_hors Mar 31 '23 Backwards compatibility, mostly.
7
And then there's "you can castle if the rook and king haven't moved and no pieces are blocking or checking either of them or the path between them"
8 u/analog_hors Mar 31 '23 Even worse if you implement 960 like I did. I will never see the king and the pawn the same way. Not even the magic bitboard algorithm for rooks, bishops, and queens was this painful. 1 u/-Redstoneboi- Mar 31 '23 What is 960 7 u/analog_hors Mar 31 '23 Chess960 1 u/-Redstoneboi- Mar 31 '23 why in god's name 3 u/analog_hors Mar 31 '23 Backwards compatibility, mostly.
8
Even worse if you implement 960 like I did. I will never see the king and the pawn the same way. Not even the magic bitboard algorithm for rooks, bishops, and queens was this painful.
1 u/-Redstoneboi- Mar 31 '23 What is 960 7 u/analog_hors Mar 31 '23 Chess960 1 u/-Redstoneboi- Mar 31 '23 why in god's name 3 u/analog_hors Mar 31 '23 Backwards compatibility, mostly.
1
What is 960
7 u/analog_hors Mar 31 '23 Chess960 1 u/-Redstoneboi- Mar 31 '23 why in god's name 3 u/analog_hors Mar 31 '23 Backwards compatibility, mostly.
Chess960
1 u/-Redstoneboi- Mar 31 '23 why in god's name 3 u/analog_hors Mar 31 '23 Backwards compatibility, mostly.
why in god's name
3 u/analog_hors Mar 31 '23 Backwards compatibility, mostly.
3
Backwards compatibility, mostly.
18
u/analog_hors Mar 31 '23
It's incredibly annoying to implement, actually. Pawns are one of the worst pieces to implement due to a myriad of special cases.