Re:This is a fully working chess program with graphics. In 1...
by StavrosK on Monday September 06, 2010 @09:46AM
(#1666634)
It 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?
[ Parent
| on HN ]
Re:This is a fully working chess program with graphics. In 1...
by CGamesPlay on Monday September 06, 2010 @09:59AM
(#1666663)
The title here on HN is "fully working", which isn't true.
Re:This is a fully working chess program with graphics. In 1...
by adamtj on Monday September 06, 2010 @10:06AM
(#1666684)
Agreed, 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.
Re:This is a fully working chess program with graphics. In 1...
by kiiski on Monday September 06, 2010 @10:09AM
(#1666689)
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).
Re:This is a fully working chess program with graphics. In 1...
by wensing on Monday September 06, 2010 @10:12AM
(#1666694)
I wonder how many characters of code it would take.
Re:This is a fully working chess program with graphics. In 1...
by niyazpk on Monday September 06, 2010 @12:02PM
(#1666888)
The 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.
Re:This is a fully working chess program with graphics. In 1...
by Isofarro on Monday September 06, 2010 @12:03PM
(#1666889)
it'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.
Re:This is a fully working chess program with graphics. In 1...
by jpwagner on Monday September 06, 2010 @12:19PM
(#1666908)
...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
Re:This is a fully working chess program with graphics. In 1...
by ars on Monday September 06, 2010 @03:18PM
(#1667232)
Also doesn't detect stalemate.