Page 1 of 1

Knightmate!

PostPosted: 28 Nov 2004, 01:13
by Ulysses Omycron
Hi, I just started programing, if rip an existing code can be called programing... Anyway, I just started editing TSCP's code, and it is already stronger than normal code... Sorta.

I only played one game :P and my code is winning by a Knight!! But uh oh, it is the only thing it has! And my program tryes to mate enemy king with just one Knight, with a 3.30 score.

How to make it know that such endings (KBK, KNNK, KNK) lead to a draw?

Thanks in advance.

Re: Knightmate!

PostPosted: 29 Nov 2004, 01:14
by Alessandro Scotti
Ulysses Omycron wrote:How to make it know that such endings (KBK, KNNK, KNK) lead to a draw?


If it isn't there, you must explicitly add this knowledge in the evaluation code. So if you detect one of the above conditions you should exit from evaluation and return a draw score.