From a123da5448bd87207d24669073e497bc16965aa9 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Wed, 6 Jan 2021 07:43:21 +0100 Subject: [PATCH] complicated game work reduction --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a9164bc..3d83cd9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,9 +61,11 @@ fn calculate_options() -> Result<(), &'static str> { // We know how many possibilities there are the first round... game.do_move(GameMove(1, Tile::Blue, 0))?; + // We also know how many possiblities there are the second round. + game.do_move(GameMove(0, Tile::Yellow, 0))?; let options = count_options(game, 0, 4); - println!("{}", options * 20 * 6); + println!("{}", options * (20 * 6)*(19*6)); Ok(()) }