Repository navigation
GTP: resignation counts the resigning player's own searches - #44
Closed
ChinChangYang wants to merge 1 commit into
Closed
ChinChangYang wants to merge 1 commit into
ChinChangYang wants to merge 1 commit into
Conversation
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>
Owner
Author
|
Closed unmerged, for the record: this fork's master is an upstream mirror. The change is branch resign-own-turns, e9476e8. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
handleGenMoveResultappends every genmove-style search's root value to one list, whichever player was searched, andshouldResignreads its lastresignConsecTurnsentries. When one process is asked togenmovefor 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 asresignConsecTurnssays (lightvector#1286).This keeps, beside that list, each player's own values, and
shouldResignreads 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.cfgwithresignConsecTurns=N,maxVisits=50, two positions, same numbers on both):Repeated
kata-searchof 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 itsEngine/.🤖 Generated with Claude Code