Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How confident are you that you could have done this?

Author: Dann Corbit

Date: 22:40:35 02/09/06

Go up one level in this thread


On February 09, 2006 at 23:53:33, Derek Mauro wrote:
[snip]
>So as I sit here dejected that I couldn't solve a problem I've spent years on,
>I'd like ask everyone this question:  How confident are you that you can 100%
>accurately write the solution to the chess question in less than 2 hours, under
>the pressure of competition, without the use of a debugger?

I would have greatly simplified it to an absurd degree.
I would not have written a legal move generator at all.
I would have found the enemy king location and looked ONLY for check moves.

Then, if there is no reply to remove the check, print the solution.

I guess that you tried to solve a much harder problem.

I would also have made a very ugly board representation (just array with huge
edges so I would not overwrite the bounds sliding 8 past the edge of the board.)

It would have been inefficient and ugly, but I think I could do it in a couple
hours.

Now, just writing a correct legal move generator would take me a full day, I
guess.

I think that they were probably looking for solutions like my outline.  It would
be irresponsible to expect you to write a real chess program.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.