-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise informative exception when trying to call
Game()
.
Games are intended to be created using one of the provided factory functions. However, calling `Game()` did not immediately raise an exception; only when attempting to operate on the game did a (less informative) exception occur. This now raises a `ValueError` when calling the `Game` constructor. Relatedly, this applies the technique across all game-related objects, and standardises the way in which those objects are initialised internally. Closes #463.
- Loading branch information
Showing
14 changed files
with
474 additions
and
370 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
Oops, something went wrong.