Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New test games and a new test mixed script for these games #407

Merged

Conversation

VarsosC
Copy link

@VarsosC VarsosC commented Nov 14, 2023

No description provided.

@VarsosC VarsosC linked an issue Nov 14, 2023 that may be closed by this pull request
@VarsosC VarsosC marked this pull request as ready for review November 14, 2023 16:59
@VarsosC VarsosC requested a review from tturocy November 14, 2023 17:00
def negative_prob(self) -> bool:
"""Returns True if at least one player has a negative \"probability\"."""
return self._negative_prob()

def _all_zero_probs(self) -> bool:
Copy link
Member

Choose a reason for hiding this comment

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

@tturocy I ended up with single implementations of _all_zero_probs and _negative_prob at the MixedStrategyProfile level. Do you see any reason for separate implementations in MixedStrategyProfileRational and MixedStrategyProfileDouble (maybe I missed something)?

expect = round(compute_liap(), 10)
assert round(expect - mixed_strat.liap_value(), 10) == 0

strat1 = [gbt.Rational(99, 100), gbt.Rational(27, 10000), gbt.Rational(27, 10000)]
Copy link
Author

Choose a reason for hiding this comment

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

Here the probabilities do not sum to one.

@rahulsavani rahulsavani force-pushed the TEST-374-write-better-tests-for-mixed-strategy-profiles branch from f1f6a54 to c4dbbe9 Compare November 30, 2023 20:09
@tturocy tturocy force-pushed the TEST-374-write-better-tests-for-mixed-strategy-profiles branch 5 times, most recently from cbbb7ec to e6b16aa Compare December 18, 2023 09:34
@tturocy tturocy force-pushed the TEST-374-write-better-tests-for-mixed-strategy-profiles branch from e6b16aa to 30b2ca9 Compare December 18, 2023 09:45
@tturocy tturocy merged commit 7d2e32c into master Dec 18, 2023
15 checks passed
@tturocy tturocy deleted the TEST-374-write-better-tests-for-mixed-strategy-profiles branch December 18, 2023 10:11
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.

TEST: Write better tests for mixed strategy profiles
3 participants