diff options
| author | Scott Gasch <[email protected]> | 2016-06-02 11:43:53 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2016-06-02 11:43:53 -0700 |
| commit | e3a192fd3a5b535e246deba540164e69cfdfa689 (patch) | |
| tree | 9d04abb1e09cc4424943a7f1331368545f024f6b /org/guru/boggle/BoardPosition.java | |
Diffstat (limited to 'org/guru/boggle/BoardPosition.java')
| -rw-r--r-- | org/guru/boggle/BoardPosition.java | 29 |
1 files changed, 29 insertions, 0 deletions
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 |
