From 68adc439999f33dda141dd2ca2cb3b76e9fa08db Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 2 Jan 2021 01:30:02 +0100 Subject: [PATCH] "full game" --- src/azul.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/azul.rs b/src/azul.rs index b35df32..6442765 100644 --- a/src/azul.rs +++ b/src/azul.rs @@ -1,5 +1,6 @@ #[derive(Debug)] enum Tile { + Start, Blue, Yellow, Red, @@ -69,7 +70,7 @@ type Wall = [Row; 5]; struct Board { score: u8, wall: Wall, - floor: u8, + floor: Vec, patterns: Patterns, } impl Default for Board { @@ -77,7 +78,7 @@ impl Default for Board { Board { score: 0, wall: Wall::default(), - floor: 0, + floor: Vec::default(), patterns: Patterns::default() } } @@ -85,6 +86,8 @@ impl Default for Board { #[derive(Default, Debug)] pub struct Game { + turn: u8, + player: u8, bag: Bag, market: Market, factories: Vec, @@ -109,6 +112,8 @@ impl Game { } let game = Game { + turn: 0, + player: 0, bag: Bag::default(), market: Market::default(), factories: factories,