diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2019-05-14 00:45:49 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2019-05-14 00:45:49 +0200 |
commit | dcbd04dfdc6dd6dac88020d3a51f23fa5905c356 (patch) | |
tree | dc02ab4951f01f6c1561928390e848f8f415ecac /src/json.rs | |
parent | 652242e584ee2b7cfb3021d570a63e57cfa52773 (diff) |
Filled in the rest of the MCTS
Problem: The current random things isn't actually finding any
victorious end states. This game easily meanders if it's played
without purpose.
Diffstat (limited to 'src/json.rs')
-rw-r--r-- | src/json.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.rs b/src/json.rs index 979252e..c796d2b 100644 --- a/src/json.rs +++ b/src/json.rs @@ -18,8 +18,8 @@ pub fn read_state_from_json_file(filename: &Path) -> Result<State, Box<Error>> { #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct State { - pub current_round: u32, - pub max_rounds: u32, + pub current_round: u16, + pub max_rounds: u16, pub map_size: u8, pub current_worm_id: i32, pub consecutive_do_nothing_count: u32, |