From e3a192fd3a5b535e246deba540164e69cfdfa689 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 2 Jun 2016 11:43:53 -0700 Subject: Initial boggle code checkin. --- org/guru/boggle/BoardPosition.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 org/guru/boggle/BoardPosition.java (limited to 'org/guru/boggle/BoardPosition.java') diff --git a/org/guru/boggle/BoardPosition.java b/org/guru/boggle/BoardPosition.java new file mode 100644 index 0000000..5ef96a7 --- /dev/null +++ b/org/guru/boggle/BoardPosition.java @@ -0,0 +1,29 @@ +package org.guru.boggle; + +import com.google.common.base.Objects; + +public class BoardPosition { + private final int x; + private final int y; + + public BoardPosition(int x, int y) { + this.x = x; + this.y = y; + } + + public int x() { + return x; + } + + public int y() { + return y; + } + + @Override + public String toString() { + return Objects.toStringHelper(this) + .add("x", x) + .add("y", y) + .toString(); + } +} \ No newline at end of file -- cgit v1.3