Implemented hand and deck

This commit is contained in:
Jan-Peter von Hunnius 2025-02-13 17:31:39 +01:00
parent 77315c79b0
commit ac25a1caea
8 changed files with 451 additions and 59 deletions

9
api/tests/deck_tests.rs Normal file
View file

@ -0,0 +1,9 @@
use poker_api::deck::Deck;
#[test]
fn test_deck_integration() {
let mut deck = Deck::new();
let card = deck.deal().unwrap();
assert_eq!(deck.cards_left(), 51);
assert!(!deck.in_deck(card));
}