]> git.scottworley.com Git - pluta-lesnura/blobdiff - src/main.rs
Composable strategies
[pluta-lesnura] / src / main.rs
index c7d55335d490654c2fb3bbaff2d3494bfb65e03a..31d95878815930d663acefc8ddbd74ff73144677 100644 (file)
@@ -45,7 +45,7 @@ fn main() -> Result<(), &'static str> {
         }) => {
             let player = || match strategy {
                 Strategy::Random => random_player(*draw_chance),
-                Strategy::Momentum => momentum_player(*draw_chance),
+                Strategy::Momentum => momentum_player(random_player(*draw_chance)),
             };
             for _ in 0..*num_games {
                 let players: Vec<_> = std::iter::from_fn(|| Some(player()))