Skip to content

Add GetPlayersWithChance() range#711

Merged
tturocy merged 2 commits intomasterfrom
dev_withchance
Dec 17, 2025
Merged

Add GetPlayersWithChance() range#711
tturocy merged 2 commits intomasterfrom
dev_withchance

Conversation

@tturocy
Copy link
Copy Markdown
Member

@tturocy tturocy commented Dec 16, 2025

This adds to GameRep a new GetPlayersWithChance(), which allows transparent iteration over the chance player as the "first" player in the collection of players.

This adds a convenience collection `GetPlayersWithChance`, which allows for
iteration over all players, with the object representing
the chance player first in the iteration.
@tturocy
Copy link
Copy Markdown
Member Author

tturocy commented Dec 16, 2025

@d-kad @rahulsavani This is the change to add GetPlayersWithChance as discussed. This was already useful somewhere else (in BehaviorSupportProfile) so it's indirectly been tested a bit.

@d-kad d-kad marked this pull request as ready for review December 16, 2025 20:09
@d-kad
Copy link
Copy Markdown
Contributor

d-kad commented Dec 16, 2025

the changes look good -- will refactor the subgames algorithm using these when pushed

@tturocy tturocy merged commit 34693af into master Dec 17, 2025
28 checks passed
@tturocy tturocy deleted the dev_withchance branch December 17, 2025 08: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.

2 participants