Initial code outline #4
0
src/card.rs
Normal file
0
src/card.rs
Normal file
0
src/deck.rs
Normal file
0
src/deck.rs
Normal file
0
src/gamestate.rs
Normal file
0
src/gamestate.rs
Normal file
0
src/hand.rs
Normal file
0
src/hand.rs
Normal file
12
src/lib.rs
Normal file
12
src/lib.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use std::error::Error;
|
||||
|
||||
mod card;
|
||||
mod hand;
|
||||
mod deck;
|
||||
mod gamestate;
|
||||
|
||||
pub fn run() -> Result<(), Box<dyn Error>> {
|
||||
println!("Hello, world!");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -1,3 +1,8 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
use blackjack::run;
|
||||
use std::error::Error;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
run()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user