-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added Standard52::pile_from_index * Updated Rank weight * added prime field to Rank for future work * Added fmt::binary to Rank * refactored Card constructors * refactored Card index constructor a little more * Added default Rank and Suit * Improved Card doc * Updated joker rank weight to be incremental * Added mirror symbols to suit filter * Added Pile.map_by_rank_count() * Updated weight to u32 * Added Standard52::pile_from_index_validated() * Refactored Standard52::pile_from_index_validated() * Finished coverage for Standard52Set * Card cleanup * Standard52 cleanup * More Card cleanup * Bumped version
- Loading branch information
1 parent
d0b2ae4
commit 4514d8b
Showing
18 changed files
with
906 additions
and
270 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
msrv = "1.56.0" | ||
|
||
cognitive-complexity-threshold = 30 | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#[derive(Debug, PartialEq)] | ||
pub enum CardError { | ||
InvalidCard, | ||
InvalidCardCount, | ||
InvalidIndex, | ||
NotEnoughCards, | ||
TooManyCards, | ||
} |
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,3 +1,4 @@ | ||
pub mod bridge; | ||
pub mod deck_error; | ||
pub mod standard52; | ||
pub mod standard52_set; |
Oops, something went wrong.