|
Chess
Apr 15, 2019 17:13:00 GMT
Post by Rod on Apr 15, 2019 17:13:00 GMT
Hmmm, while it now resigns it still does not play its way out of check. Whatever check ends the game, when black could play out of check. It is looking two plays ahead so perhaps it knows the situation is unwinnable. More testing.
edit: yep load Anatoly's game and play C5 B6 instead of C5 B5 despite being able to play out it just resigns. More work required.
|
|
|
Post by Rod on Apr 16, 2019 12:22:08 GMT
Right, I can now get it to resign when cornered or play its way out of check. Don't save any game, start it and load Anatoly's game which comes with the .zip. Move the queen to B6, B5 or A5. One play is checkmate B5 the other two it will play out of check. If it resigns restart and load Anatoly's game again otherwise just click undo and play again. Now it is too soon to say its fixed, but I am feeling confident...…. gamebin.webs.com/Liberty/LB%20Chess.zip
|
|
|
Chess
Dec 30, 2020 17:12:31 GMT
Post by adrian on Dec 30, 2020 17:12:31 GMT
Thanks Rod, A very enjoyable chess interface with great GUI. It doesn't seem to recognize checkmate in certain situations though, e.g. see the attached screenshot. In that game, it should have resigned one move earlier when checkmate was imminent, but it resigned after being mated. Cheers! Adrian ibb.co/xLL7zLz
|
|
|
Chess
Dec 30, 2020 18:21:47 GMT
Post by B+ on Dec 30, 2020 18:21:47 GMT
Welcome adrian,
Ha, ha! It must be you from that other forum, how many adrains in world like Chess and Basic programming?
|
|
|
Chess
Dec 30, 2020 19:21:56 GMT
Post by adrian on Dec 30, 2020 19:21:56 GMT
haha.... you are right, B+
I see you are as active as ever!
|
|
|
Chess
Dec 30, 2020 20:27:21 GMT
Post by Rod on Dec 30, 2020 20:27:21 GMT
Thanks for the feedback. It may take a while to fix. The issue I had before was getting it to play its way out of check. Now it would seem it can see the single play out of check but not the inevitable check mate.
|
|
|
Chess
Dec 31, 2020 9:15:09 GMT
Post by Rod on Dec 31, 2020 9:15:09 GMT
Actuall, having slept on it perhaps I was fixing something that was not broken. It plays ahead, if it knew it could not play out of check perhaps it should have been resigning on the earlier move. I made it play on pointlessly! Not being a chess player has its handicaps when messing with chess AI.
|
|
|
Chess
Dec 31, 2020 15:05:07 GMT
via mobile
Post by adrian on Dec 31, 2020 15:05:07 GMT
Yes i think you are right. The tricky modification to this AI is to get the computer to switch sides and let the human play black.
|
|
|
Chess
Dec 31, 2020 17:21:17 GMT
Post by Rod on Dec 31, 2020 17:21:17 GMT
I think I would start by swapping sprites, no need to change AI the computer won’t care if they are black or white. But who goes first changes? that would be a logic flow change.
|
|
|
Chess
Dec 31, 2020 17:39:30 GMT
Post by B+ on Dec 31, 2020 17:39:30 GMT
Hmm... I wonder if that was the one we messed with on another forum, it also did not handle being in check well. And the hack of switching black and white is not simple because white goes first and pieces have to be switched around, Queen has to be on her color, you know how women are about being color coordinated ;-))
So that messes up Castling to the different sides...
|
|
|
Chess
Dec 31, 2020 22:06:14 GMT
via mobile
Post by adrian on Dec 31, 2020 22:06:14 GMT
Hmm... I wonder if that was the one we messed with on another forum, it also did not handle being in check well. And the hack of switching black and white is not simple because white goes first and pieces have to be switched around, Queen has to be on her color, you know how women are about being color coordinated ;-)) So that messes up Castling to the different sides... Yes, that’s the program we messed with. The main attraction of Dean Menezes’ program is that it is svelte at 500 lines of code. The Minimax program by Chrilly Donninger and Dieter Steinwender ( jbfilesarchive.com/phpBB3/viewtopic.php?t=1575 ) is stronger and more robust at 2000+ lines of BASIC code, and allows the player to switch sides any time.
|
|
|
Chess
Jan 1, 2021 9:12:51 GMT
Post by Rod on Jan 1, 2021 9:12:51 GMT
2000+, yes and 1300 more! I did look at that program. My main goal was to have a nice looking interface, 500 lines felt much more approachable. I can't see myself tackling that large program.
Altering who is the AI and what view we have might be possible on the shorter code. But what else is wrong with it? I need to better understand what is wrong with check and resignation. For that I probably need to build a game builder that lets us set out pieces. Didn't get much interest last time round which is a pity.
|
|
|
Chess
Jan 2, 2021 3:38:13 GMT
Post by adrian on Jan 2, 2021 3:38:13 GMT
the game builder idea sounds interesting. will be happy to help to test the program.
|
|