From e9e4ca74bef86a9c62942bec350d5381a97611d8 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Mon, 17 May 2021 01:36:23 +0200 Subject: [PATCH] remove tiles from the bag of bench game --- src/azul.rs | 7 +++++++ src/main.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/azul.rs b/src/azul.rs index c89a527..cce6568 100644 --- a/src/azul.rs +++ b/src/azul.rs @@ -708,6 +708,13 @@ pub fn some_game() -> Result { factories[4].push(Tile::Black); factories[4].push(Tile::Teal); + let bag = &mut game.bag; + bag.blue -= 5; + bag.yellow -= 3; + bag.black -= 4; + bag.red -= 5; + bag.teal -= 3; + Ok(game) } diff --git a/src/main.rs b/src/main.rs index f03c420..025f162 100644 --- a/src/main.rs +++ b/src/main.rs @@ -91,7 +91,7 @@ fn calculate_options() -> Result<(), &'static str> { Ok(()) } -#[cached(size=45_000_000, key = "Game", convert = r#"{ _game }"#)] +#[cached(size=10_000_000, key = "Game", convert = r#"{ _game }"#)] fn count_options(_game: Game, depth: u8, treshold: u8) -> u128 { let before = std::time::Instant::now();