Knightmate!

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Knightmate!

Postby Ulysses Omycron » 28 Nov 2004, 01:13

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.
Ulysses Omycron
 

Re: Knightmate!

Postby Alessandro Scotti » 29 Nov 2004, 01:14

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.
User avatar
Alessandro Scotti
 
Posts: 306
Joined: 20 Nov 2004, 00:10
Location: Rome, Italy


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 5 guests