-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored games to generalise & add asymmetric games (#1413)
* Added asymmetric games and made regular games a subclass * small improvements to code style * fixing docs mock... * Revert "fixing docs mock..." This reverts commit 09fb251. * used IntEnum to simplify * small improvements & a fix * added asymmetric games to docs * added werror if invalid payoff matrices are given * removed .item() * changed dbs.action_to_int to use IntEnum behaviour * Revert "changed dbs.action_to_int to use IntEnum behaviour" This reverts commit bb6171c. * made library code more robust wrt integer actions * all strategies now work with integer actions * added tests and fixed __eq__ * improved coverage * changed Action back to Enum and added casting to score * added casting test * removed numpy mocking * changed doc due to doctests being picky * re-fixed doctest examples * review changes * Added tutorial for implementing new games * fixed formatting * made doctests work
- Loading branch information
Showing
10 changed files
with
378 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.