summaryrefslogtreecommitdiff
path: root/src/geometry
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-05-14 00:45:49 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-05-14 00:45:49 +0200
commitdcbd04dfdc6dd6dac88020d3a51f23fa5905c356 (patch)
treedc02ab4951f01f6c1561928390e848f8f415ecac /src/geometry
parent652242e584ee2b7cfb3021d570a63e57cfa52773 (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/geometry')
-rw-r--r--src/geometry/rect.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/geometry/rect.rs b/src/geometry/rect.rs
deleted file mode 100644
index e2b1882..0000000
--- a/src/geometry/rect.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-use crate::geometry::Point2d;
-use crate::geometry::Vec2d;
-
-#[derive(Debug, Default, Clone, Copy, PartialEq)]
-pub struct Rectangle<T> {
- pub pos: Point2d<T>,
- pub size: Vec2d<T>,
-}
-
-impl<T> Rectangle<T> {
- pub fn new(x: T, y: T, w: T, h: T) -> Rectangle<T> {
- Rectangle {
- pos: Point2d::new(x, y),
- size: Vec2d::new(w, h),
- }
- }
-
- // TODO: Constructor to build a rectangle centered at an x,y
-}