remove tiles from the bag of bench game

This commit is contained in:
Daniel Olsen 2021-05-17 01:36:23 +02:00
parent c64908621d
commit e9e4ca74be
2 changed files with 8 additions and 1 deletions

View File

@ -708,6 +708,13 @@ pub fn some_game() -> Result<Game, &'static str> {
factories[4].push(Tile::Black); factories[4].push(Tile::Black);
factories[4].push(Tile::Teal); 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) Ok(game)
} }

View File

@ -91,7 +91,7 @@ fn calculate_options() -> Result<(), &'static str> {
Ok(()) 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 { fn count_options(_game: Game, depth: u8, treshold: u8) -> u128 {
let before = std::time::Instant::now(); let before = std::time::Instant::now();