Skip to content

Enhance Python ISMCTSBot resampling with seeded randomness - #1584

Open
tpemeja wants to merge 1 commit into
google-deepmind:masterfrom
tpemeja:fix/ISMCTSBot-random
Open

Enhance Python ISMCTSBot resampling with seeded randomness#1584
tpemeja wants to merge 1 commit into
google-deepmind:masterfrom
tpemeja:fix/ISMCTSBot-random

Conversation

@tpemeja

@tpemeja tpemeja commented Aug 3, 2026

Copy link
Copy Markdown

When you seed an ISMCTSBot with random_state, it should be deterministic. But the default resampler in ismcts.py was calling the unseeded UniformProbabilitySampler constructor, so it kept using wall-clock time instead of respecting the seed.

The C++ implementation was fine, Python just wasn't calling the seeded constructor.

Added a test to verify seeded bots now produce identical behavior across runs.

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