-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prep for GameLog stuff: Introduce ContextEnhancer (#261)
* make random.update take and return state to make it consistent with events API * centralize attach/detach APIs from a context * use ApiContext when processing events * use ApiContext while processing moves also * dissolve update() method specialized to the init code * incorporate review comments * introduce updateAndDetach since both operations come directly after another * allow to disable event update * bring branch coverage back to 100% by removing default value
- Loading branch information
1 parent
3999db3
commit 510977f
Showing
3 changed files
with
69 additions
and
54 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