remove tiles from the bag of bench game
This commit is contained in:
parent
c64908621d
commit
e9e4ca74be
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue