05-11-2021, 02:37 PM
(This post was last modified: 05-11-2021, 03:06 PM by dale walton.)
Hi, I revised the script, (and remove all testing for repeats and other complications) and it works until the end. - But in some games the AI hangs. stopping one pass short of completion.
At that point I can revert the game and even reload it, but afterwards, as soon as I re-initiate the AI (or try to make a manual move) the program hangs completely and must be killed from the terminal. After restarting from the terminal the position comes up, and the last move can be made manually, (the AI can be resarted, but may hang again)
This is intermittent, but consistant for a given game/AI setting So I saved a trial of a game that I completed manually after the AI hang - but completed it in a win for the other player.
That in itself was surprising: it means the AI chose a losing pass move on the last successful move instead of a game-winning capture.
To reproduce the bug, please set both AI to A/B 1 second, load the trial to show a win for white, then backup to one move before the last move before the two passes which shows a red piece that can be captured. - Then run the AI.
Dennis, I lost the trial file, that one is not the right trial,
I am trying to generate another trial with the same properties for you to see
OK, I found it and added another case, where I terminated, reloaded, backed up the game one move, and restarted the AI to get a different 8unhung result.
Note, when this is working, I do want to, instead, stop the game after a player repeats a previous position, including by passing after a pass.
I tried putting (is Repeat Situational) as the end condition, but it wasn't working - that might have been failing due to what is happening here, in this more standard ending....
At that point I can revert the game and even reload it, but afterwards, as soon as I re-initiate the AI (or try to make a manual move) the program hangs completely and must be killed from the terminal. After restarting from the terminal the position comes up, and the last move can be made manually, (the AI can be resarted, but may hang again)
This is intermittent, but consistant for a given game/AI setting So I saved a trial of a game that I completed manually after the AI hang - but completed it in a win for the other player.
That in itself was surprising: it means the AI chose a losing pass move on the last successful move instead of a game-winning capture.
To reproduce the bug, please set both AI to A/B 1 second, load the trial to show a win for white, then backup to one move before the last move before the two passes which shows a red piece that can be captured. - Then run the AI.
Dennis, I lost the trial file, that one is not the right trial,
I am trying to generate another trial with the same properties for you to see
OK, I found it and added another case, where I terminated, reloaded, backed up the game one move, and restarted the AI to get a different 8unhung result.
Note, when this is working, I do want to, instead, stop the game after a player repeats a previous position, including by passing after a pass.
I tried putting (is Repeat Situational) as the end condition, but it wasn't working - that might have been failing due to what is happening here, in this more standard ending....