diff --git a/src/lib/controller/random.rs b/src/lib/controller/random.rs index cb68ba3..3446d9f 100644 --- a/src/lib/controller/random.rs +++ b/src/lib/controller/random.rs @@ -5,6 +5,12 @@ use crate::lib::grid::Grid; pub struct RandomController; +impl RandomController { + pub fn new() -> Self { + Self + } +} + impl Controller for RandomController { fn next_move(&mut self, _grid: &Grid) -> Result { let movement = random();