]> git.scottworley.com Git - pluta-lesnura/commitdiff
Test with momentum_player
authorScott Worley <scottworley@scottworley.com>
Tue, 18 Jul 2023 19:57:01 +0000 (12:57 -0700)
committerScott Worley <scottworley@scottworley.com>
Tue, 18 Jul 2023 19:58:29 +0000 (12:58 -0700)
src/lib.rs

index 8f7949a57de7ea2cb4e343c4b4b7c997d36fec53..cae313283f6ab55cf11f159017530738e3cac327 100644 (file)
@@ -529,7 +529,7 @@ mod tests {
     #[test]
     fn test_game() {
         for num_players in 1..10 {
     #[test]
     fn test_game() {
         for num_players in 1..10 {
-            let players: Vec<_> = std::iter::from_fn(|| Some(random_player(0.5)))
+            let players: Vec<_> = std::iter::from_fn(|| Some(momentum_player(random_player(0.5))))
                 .take(num_players)
                 .collect();
             let mut game = Game::default();
                 .take(num_players)
                 .collect();
             let mut game = Game::default();