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
21 lines
225 B
Rust
21 lines
225 B
Rust
use std::error::Error;
|
|
|
|
mod card;
|
|
|
|
pub use card::Card;
|
|
|
|
mod deck;
|
|
|
|
pub use deck::Deck;
|
|
|
|
mod gamestate;
|
|
mod hand;
|
|
|
|
pub use hand::Hand;
|
|
|
|
pub fn run() -> Result<(), Box<dyn Error>> {
|
|
println!("Hello, world!");
|
|
|
|
Ok(())
|
|
}
|