3 ms·
It's not quite fully working. Either that, or I just can't figure out how to castle. Even so, it's very impressive.
by adamtj 16y ago
It's not quite fully working. Either that, or I just can't figure out how to castle. Even so, it's very impressive.
- deleted 16y ago[deleted]
- StavrosK 16y agoIt says in the description that it doesn't support castling or en passant. Also, wtf, the guy wrote a chess program with AI in 1 kb and you're complaining about castling?
- CGamesPlay 16y agoThe title here on HN is "fully working", which isn't true.
- adamtj 16y agoAgreed, I wasn't complaining, I was just pointing out a minor inaccuracy in the title. It's very impressive and doesn't need to be oversold.
- kiiski 16y agoCastling 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