Page 2 of 2
Posted: Mon Jan 14, 2008 10:12 pm
by mpi
You don't have to watch for any string "EOF" at the end of the input. EOF stands for End Of File and means "no data", that is, after the last description of a board there is nothing. In C, you should do something like this:
where buffer is an array of at least 64+1 chars.
Posted: Tue Jan 15, 2008 11:50 am
by RC's
I think the output is "game is not over", since the king can move south..
is there any other cases ?
Re: 286: WA What is the trick?
Posted: Thu Feb 09, 2012 1:22 am
by brianfry713
It's checkmate, not checkermate.
Re: 286 - Dead Or Not -- That Is The Question
Posted: Sun Jun 05, 2016 5:53 am
by metaphysis
The problem statement is not so clear.
When a pawn is in the 8th row, do I have to count it as any potentially promoted piece?
NO, you can assume that potential promotion already took place. so, a pawn in the 8th row is just a pawn.
The input is given as row by row, first a1 - h1, then a2 - h2, etc.
Re: 286 - Dead Or Not -- That Is The Question
Posted: Tue Dec 20, 2016 2:14 pm
by RandyWaterhouse
The problem statement is completely messed up IMO. The possible values for the characters indicating the pieces (e.g. 's' for knights, 'd' for queens) don't match at all with the provided sample input which uses a different character set, e.g. including a 'q' (which I suppose is for queens) and a 'p' (pawns?).
Also, there are no spaces at all in the sample input so the black king wouldn't have a possible move in any of them.
???