10383 - Queen vs Rook

All about problems in Volume 103. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
mmammel
New poster
Posts: 11
Joined: Fri Aug 23, 2002 9:42 pm
Location: MD, USA
Contact:

10383 - Queen vs Rook

Post by mmammel »

Hi,

I was confident that my program solved all endgame positions but I get WA. Could anyone supply me with challenging input to see if I agree with you? Mine solves the sample input correctly...
Here's one piece of info I have determined:
(partial spoiler)
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The maximum number of moves to checkmate is 35, any position not resolved by then is a draw.

Thanks,
Mark
SnapDragon
Problemsetter
Posts: 22
Joined: Tue Jun 11, 2002 12:35 am

Post by SnapDragon »

I get 35 as well. It sounds like your search is correct; my guess is that you have some minor error when outputting the winning moves? Something cosmetic, anyway.
mmammel
New poster
Posts: 11
Joined: Fri Aug 23, 2002 9:42 pm
Location: MD, USA
Contact:

10383 Queen vs Rook: WA

Post by mmammel »

Thanks for pointing me toward my output -- my table was correct but I was incorrectly rotating the best moves during output. Whew, good problem!

-Mark
Yarin
Problemsetter
Posts: 112
Joined: Tue Sep 10, 2002 5:06 am
Location: Ume
Contact:

Post by Yarin »

Whew, good problem
Thanks :) I'm surprised so many has taken time trying it. There can't be many problems on UVA which requires more _time_ in the actual coding phase.
kh9
New poster
Posts: 4
Joined: Fri Jun 06, 2003 11:29 pm

Post by kh9 »

Just wondering... is castling a valid move in this problem?
Yarin
Problemsetter
Posts: 112
Joined: Tue Sep 10, 2002 5:06 am
Location: Ume
Contact:

Post by Yarin »

From the problem statement:
You may also assume that castling will not be allowed anytime during the game for the player with king + rook.
Guess that should answer your question.
Cho
A great helper
Posts: 274
Joined: Wed Oct 20, 2004 11:51 pm
Location: Hong Kong

Post by Cho »

In case anyone is still interested in this very old thread, pls clarify for me.
Why the output of the first sample "WKa1 BKa3 WRc2 BQd2 B" is not:

Code: Select all

Black mates in 1
Qxc1#
Do I need to know further rules of Chess to get the sample output?
Per
A great helper
Posts: 429
Joined: Fri Nov 29, 2002 11:27 pm
Location: Sweden

Post by Per »

Cho wrote:In case anyone is still interested in this very old thread, pls clarify for me.
Why the output of the first sample "WKa1 BKa3 WRc2 BQd2 B" is not:

Code: Select all

Black mates in 1
Qxc1#
Do I need to know further rules of Chess to get the sample output?
I'm guessing you mean "Qxc2#" rather than "Qxc1#".

Check mate can only occur if you are checked. If you cannot move, but are not checked, the game ends a draw.

(Incidentally, I learned this rule when solving this problem.)
Cho
A great helper
Posts: 274
Joined: Wed Oct 20, 2004 11:51 pm
Location: Hong Kong

Post by Cho »

Per wrote:I'm guessing you mean "Qxc2#" rather than "Qxc1#"
Yes, exactly. Thanks. :)
Post Reply

Return to “Volume 103 (10300-10399)”