From dd0ed4cfff1a4af2a518aab399e32174175ed0d8 Mon Sep 17 00:00:00 2001 From: natrixaeria Date: Sun, 22 Dec 2019 06:21:32 +0100 Subject: Arrange project structure --- src/solver.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/solver.rs (limited to 'src/solver.rs') diff --git a/src/solver.rs b/src/solver.rs new file mode 100644 index 0000000..c289cd6 --- /dev/null +++ b/src/solver.rs @@ -0,0 +1,9 @@ +use crate::structs::StoneWall; + +pub trait Solver { + fn new(n: u32) -> Self; + fn solve(&mut self) -> StoneWall; + fn n(&self) -> u32; + fn h(&self) -> u32; + fn w(&self) -> u32; +} -- cgit v1.2.3-70-g09d2