Skip to content

prevent infinite loop when only 1 civ is unplayed#13

Merged
with-heart merged 1 commit intomainfrom
fix-infinite-loop-played-unplayed-randomize
Apr 2, 2025
Merged

prevent infinite loop when only 1 civ is unplayed#13
with-heart merged 1 commit intomainfrom
fix-infinite-loop-played-unplayed-randomize

Conversation

@with-heart
Copy link
Member

This PR prevents an infinite loop when only 1 civ is unplayed. The loop could occur if the only unplayed civ was played then unplayed, then randomize was clicked again. Since randomize prevents the next currentCiv from being the same as the previous currentCiv, it would get into a state where those values could never be different.

@with-heart with-heart merged commit acfd1f3 into main Apr 2, 2025
1 check passed
@github-actions
Copy link

github-actions bot commented Apr 2, 2025

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