Skip to content

GTP: resignation counts the resigning player's own searches - #44

Closed
ChinChangYang wants to merge 1 commit into
masterfrom
resign-own-turns
Closed

ChinChangYang wants to merge 1 commit into
masterfrom
resign-own-turns

Conversation

@ChinChangYang

Copy link
Copy Markdown
Owner

handleGenMoveResult appends every genmove-style search's root value to one list, whichever player was searched, and shouldResign reads its last resignConsecTurns entries. When one process is asked to genmove for both players, the other player's searches fill the window too, and the losing side resigns after about half as many of its own turns as resignConsecTurns says (lightvector#1286).

This keeps, beside that list, each player's own values, and shouldResign reads the list of the player it is asked about. A process that searches for one player only resigns as before; dynamic PDA and the search factor still read the combined list.

Number of White's own searches at which a hopeless White resigns (master d91ea85, Metal backend, stock gtp_example.cfg with resignConsecTurns=N,maxVisits=50, two positions, same numbers on both):

resignConsecTurns one color both colors, before both colors, after
3 3 2 3
10 10 5 10

Repeated kata-search of one position still counts each search as a turn; this change does not touch that.

One file (cpp/command/gtp.cpp, +9 −1). AuroraGo vendors the same hunks into its Engine/.

🤖 Generated with Claude Code

handleGenMoveResult appends every genmove-style search's root value to
one list, whichever player was searched, and shouldResign reads its
last resignConsecTurns entries. When one process is asked to genmove
for both players, the other player's searches fill the window too, and
the losing side resigns after about half as many of its own turns as
resignConsecTurns says (lightvector#1286).

Keep, beside that list, each player's own values, and have shouldResign
read the list of the player it is asked about. A process that searches
for one player only resigns as before; dynamic PDA and the search
factor still read the combined list.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@ChinChangYang

Copy link
Copy Markdown
Owner Author

Closed unmerged, for the record: this fork's master is an upstream mirror. The change is branch resign-own-turns, e9476e8.

@ChinChangYang
ChinChangYang deleted the resign-own-turns branch November 27, 2026 04:59
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