5 ms·
Castling is pretty important move in chess. You can hardly claim an implementation to be fully working without it (although it wasn't the author claiming that).
by kiiski 16y ago
Castling is pretty important move in chess. You can hardly claim an implementation to be fully working without it (although it wasn't the author claiming that).
- wensing 16y agoI wonder how many characters of code it would take.
- niyazpk 16y agoThe problem with castling is that for a move that is only once done in a chess game we have to keep track of a couple of variables and do a check for every move in the tree. It is rather unpleasant to code and it will increase the program size and decrease the speed (by a bit I mean). May be that is because they ended up not implementing castling.
- Isofarro 16y agoit's one of three special cases where it isn't moving a piece from and to a square. The other being capturing enpassant, and queening a pawn. Certainly cannot claim to be complete without being able to play a legal move.
- jpwagner 16y ago...promoting a pawn ...and then there's the 50 move and repetition draws ...and a non-chess player may not realize how vital a knowledge of openings is but it basically works