package org.goplayer.util;

public class Coord {
	private final int row;
	private final int col;

	public Coord(int row, int col) {
		this.row = row;
		this.col = col;
	}

	public int getRow() {
		return row;
	}

	public int getCol() {
		return col;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == this) {
			return true;
		} else if (obj instanceof Coord) {
			Coord c = (Coord) obj;
			return row == c.row && col == c.col;
		} else {
			return false;
		}
	}

	@Override
	public int hashCode() {
		return (int) (row * 3881 + col * 3967);
	}
}

@@ -243,24 +243,106 @@
 rn col;%0A%09%7D%0A%0A
+%09@Override%0A%09public String toString() %7B%0A%09%09return %22(%22 + row + %22, %22 + col + %22)%22;%0A%09%7D%0A%0A
 %09@Override%0A%09

Add a string representation for the coords.