diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2020-04-25 20:27:41 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2020-04-25 20:27:41 +0200 |
commit | d28628822e172cf232e5a86764110870baf6fc39 (patch) | |
tree | 24e44383978f339aab6dc9df3e3ffba4e46867d9 /tests/live_comparison.rs | |
parent | 52e0c74c506e2331cab8b4b118373c63cdc59364 (diff) |
Event-based heuristic at the beginning, astar at the end
Diffstat (limited to 'tests/live_comparison.rs')
-rw-r--r-- | tests/live_comparison.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/live_comparison.rs b/tests/live_comparison.rs index 54ac1f7..3e29069 100644 --- a/tests/live_comparison.rs +++ b/tests/live_comparison.rs @@ -2,7 +2,7 @@ extern crate vroomba; use vroomba::command::Command; use vroomba::json; -use vroomba::state::GameState; +use vroomba::state::{GameState, GameStateUpdateEvents}; use std::fs::File; use std::io::prelude::*; @@ -48,7 +48,7 @@ fn test_from_replay(replay_folder: &Path) { state.players[1].oils = 1; println!("Player 1: {}, Player 2: {}", player, opponent); - state.update([player, opponent]); + state.update([player, opponent], &mut GameStateUpdateEvents::default()); println!("State {}: {:?}", i + 1, state); assert_eq!( |