Created Hand Type

Created a Hand type that can also calculate the sum of the cards in the
hand. Also wrote a display for it so that we can just print hands out.

Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
2026-01-11 16:25:37 -05:00
parent b5cc0a7293
commit b2e2d547ef
3 changed files with 127 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
use std::error::Error;
mod card;
pub use card::Card;
mod deck;
pub use deck::Deck;
@@ -8,6 +11,8 @@ pub use deck::Deck;
mod gamestate;
mod hand;
pub use hand::Hand;
pub fn run() -> Result<(), Box<dyn Error>> {
println!("Hello, world!");