summaryrefslogtreecommitdiff
path: root/src/strategy/monte_carlo.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-05-31 21:00:22 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-05-31 21:00:22 +0200
commit7b95465d47af0c1e74f1d2e4c76fdb7a9b6e960c (patch)
treeed0cdaf376ac8b1e2edfade52931b0a3c620f031 /src/strategy/monte_carlo.rs
parent693d503953e2199cc9a64beda21e4f1d9db9a26e (diff)
Clippy suggested changes
Diffstat (limited to 'src/strategy/monte_carlo.rs')
-rw-r--r--src/strategy/monte_carlo.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strategy/monte_carlo.rs b/src/strategy/monte_carlo.rs
index ab13d87..cd4dc35 100644
--- a/src/strategy/monte_carlo.rs
+++ b/src/strategy/monte_carlo.rs
@@ -46,7 +46,7 @@ pub fn choose_move(settings: &GameSettings, state: &GameState, start_time: &Prec
}
match command {
- Some(ref command) => command.command,
+ Some(command) => command.command,
_ => Command::Nothing
}
}
@@ -112,13 +112,13 @@ struct CommandScore {
impl CommandScore {
fn new(command: Command) -> CommandScore {
CommandScore {
- command: command,
+ command,
victories: 0,
defeats: 0,
draws: 0,
stalemates: 0,
attempts: 0,
- next_seed: [0x7b6ae1f4, 0x413ce90f, 0x67816799, 0x770a6bda]
+ next_seed: [0x7b6a_e1f4, 0x413c_e90f, 0x6781_6799, 0x770a_6bda]
}
}