Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix ucinewgame command when followed by go command #455

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

eduherminio
Copy link
Member

Fix ucinewgame command, so that it actually internally initializes a new game.

Before:

position startpos
go depth 3
info depth 1 seldepth 1 multipv 1 score cp 66 nodes 20 nps 19 time 48 pv g1f3
info depth 2 seldepth 4 multipv 1 score cp 0 nodes 392 nps 369 time 61 pv g1f3 g8f6
info depth 3 seldepth 6 multipv 1 score cp 3 nodes 118 nps 111 time 63 pv a2a3 g8f6 g1f3
info depth 3 seldepth 6 multipv 1 score cp 3 nodes 118 nps 111 time 63 hashfull 0 pv a2a3 g8f6 g1f3
bestmove a2a3 ponder g8f6

ucinewgame
go depth 3
# Black to move, board wasn't reset
info depth 1 seldepth 1 multipv 1 score cp 62 nodes 20 nps 20 time 3 pv g8f6
info depth 2 seldepth 5 multipv 1 score cp -3 nodes 379 nps 376 time 9 pv g8f6 g1f3
info depth 3 seldepth 6 multipv 1 score cp 0 nodes 109 nps 108 time 13 pv a7a6 g1f3 g8f6
info depth 3 seldepth 6 multipv 1 score cp 0 nodes 109 nps 108 time 13 hashfull 0 pv a7a6 g1f3 g8f6
bestmove a7a6 ponder g1f3

After:

position startpos
go depth 3
info depth 1 seldepth 1 multipv 1 score cp 66 nodes 20 nps 19 time 53 pv g1f3
info depth 2 seldepth 4 multipv 1 score cp 0 nodes 392 nps 368 time 65 pv g1f3 g8f6
info depth 3 seldepth 8 multipv 1 score cp 61 nodes 1181 nps 1086 time 87 pv d2d4 g8f6 g1f3
info depth 3 seldepth 8 multipv 1 score cp 61 nodes 1181 nps 1086 time 87 hashfull 0 pv d2d4 g8f6 g1f3
bestmove d2d4 ponder g8f6

ucinewgame
go depth 3
# Same result as before
info depth 1 seldepth 1 multipv 1 score cp 66 nodes 20 nps 20 time 0 pv g1f3
info depth 2 seldepth 4 multipv 1 score cp 0 nodes 392 nps 389 time 7 pv g1f3 g8f6
info depth 3 seldepth 8 multipv 1 score cp 61 nodes 1181 nps 1144 time 32 pv d2d4 g8f6 g1f3
info depth 3 seldepth 8 multipv 1 score cp 61 nodes 1181 nps 1144 time 32 hashfull 0 pv d2d4 g8f6 g1f3
bestmove d2d4 ponder g8f6

@eduherminio eduherminio enabled auto-merge (squash) October 22, 2023 14:42
@eduherminio eduherminio merged commit ba5adf5 into main Oct 22, 2023
21 checks passed
@eduherminio eduherminio deleted the bugfix/ucinewgame branch October 22, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant