"full game"

This commit is contained in:
Daniel Olsen 2021-01-02 01:30:02 +01:00
parent 177f29d732
commit 68adc43999
1 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#[derive(Debug)] #[derive(Debug)]
enum Tile { enum Tile {
Start,
Blue, Blue,
Yellow, Yellow,
Red, Red,
@ -69,7 +70,7 @@ type Wall = [Row; 5];
struct Board { struct Board {
score: u8, score: u8,
wall: Wall, wall: Wall,
floor: u8, floor: Vec<Patternline>,
patterns: Patterns, patterns: Patterns,
} }
impl Default for Board { impl Default for Board {
@ -77,7 +78,7 @@ impl Default for Board {
Board { Board {
score: 0, score: 0,
wall: Wall::default(), wall: Wall::default(),
floor: 0, floor: Vec::default(),
patterns: Patterns::default() patterns: Patterns::default()
} }
} }
@ -85,6 +86,8 @@ impl Default for Board {
#[derive(Default, Debug)] #[derive(Default, Debug)]
pub struct Game { pub struct Game {
turn: u8,
player: u8,
bag: Bag, bag: Bag,
market: Market, market: Market,
factories: Vec<Factory>, factories: Vec<Factory>,
@ -109,6 +112,8 @@ impl Game {
} }
let game = Game { let game = Game {
turn: 0,
player: 0,
bag: Bag::default(), bag: Bag::default(),
market: Market::default(), market: Market::default(),
factories: factories, factories: factories,