Skip to content

Conversation

@bovard
Copy link
Member

@bovard bovard commented May 23, 2024

if one_guessed and not two_guessed:
end_game(active2, inactive2, 0, DONE, DONE)
elif two_guessed and not one_guessed:
end_game(active1, inactive1, 0, DONE, DONE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also end if both guess?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will already be taken care of in the guesser_action where they will be given reward and set status to DONE

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, you don't need the wrapper if one_guessed or two_guessed clause?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I can remove that

@bovard bovard requested a review from dster2 May 23, 2024 18:43
if one_guessed and not two_guessed:
end_game(active2, inactive2, 0, DONE, DONE)
elif two_guessed and not one_guessed:
end_game(active1, inactive1, 0, DONE, DONE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, you don't need the wrapper if one_guessed or two_guessed clause?

@bovard bovard merged commit 8689ca7 into master May 23, 2024
@SohierDane SohierDane deleted the end_condition branch September 26, 2025 21:12
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.

3 participants