-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Qi): reimplementation for enhanced flexibility
This commit makes several enhancements to the `Qi` class implementation, aimed at increasing its flexibility to handle a broader variety of input types. Specific updates include: 1. Allow pieces to be represented by any object type, not just strings. 2. Allow the keys of `squares_hash` to be any object type. 3. Allow items from `turns` to be any object type. 4. Ensure `state` values can also be any object type. 5. `state` keys are now converted to symbols to ensure consistent access. These changes improve the versatility of the `Qi` class, enabling it to handle a wider range of game scenarios and increasing its usefulness for building board game software.
- Loading branch information
Showing
11 changed files
with
327 additions
and
436 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,3 +76,6 @@ Metrics/ModuleLength: | |
|
||
Naming/ConstantName: | ||
Enabled: false | ||
|
||
Style/NumericPredicate: | ||
EnforcedStyle: comparison |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,6 @@ Metrics/ModuleLength: | |
|
||
Naming/ConstantName: | ||
Enabled: false | ||
|
||
Style/NumericPredicate: | ||
EnforcedStyle: comparison |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.0.0.beta12 | ||
10.0.0 |
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.