Initial Skeleton Code
Initial skeleton code to start basing development work off of. Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
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() {
|
use blackjack::run;
|
||||||
println!("Hello, world!");
|
use std::error::Error;
|
||||||
|
|
||||||
|
fn main() -> Result<(), Box<dyn Error>> {
|
||||||
|
run()?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user