summaryrefslogtreecommitdiff
path: root/src/solver.rs
diff options
context:
space:
mode:
authornatrixaeria <upezu@student.kit.edu>2019-12-22 06:21:32 +0100
committernatrixaeria <upezu@student.kit.edu>2019-12-22 06:21:32 +0100
commitdd0ed4cfff1a4af2a518aab399e32174175ed0d8 (patch)
tree124d00db8c17dff68db8fa5b1e4a7f762ea0851f /src/solver.rs
parentc22cbdc401d067cd6cc55c5194255ccc8bd3c71b (diff)
Arrange project structure
Diffstat (limited to 'src/solver.rs')
-rw-r--r--src/solver.rs9
1 files changed, 9 insertions, 0 deletions
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;
+}