PatternFinder { static short[][] getOffsets() { return offsets; }  static long getHash(Board board, short p, int minStones,
			short lastMove); @SuppressWarnings("boxing") static void main(String[] args); static final int ENEMY_2_LIBERTIES; static final int ENEMY_3_OR_MORE_LIBERTIES; static final int ENEMY_IN_ATARI; static final int FRIENDLY_2_LIBERTIES; static final int FRIENDLY_3_OR_MORE_LIBERTIES; static final int FRIENDLY_IN_ATARI; static final int LAST_MOVE_INCREASE; static final int OFF_BOARD; static final long[][] POINT_HASHES; }
@Test public void testOffsets() { short[][] offsets = getOffsets(); assertArrayEquals(new short[] {-1, 0}, offsets[0]); assertArrayEquals(new short[] {0, -1}, offsets[1]); assertArrayEquals(new short[] {0, 1}, offsets[2]); assertArrayEquals(new short[] {1, 0}, offsets[3]); assertArrayEquals(new short[] {-1, -1}, offsets[4]); assertNotNull(offsets[offsets.length - 1]); }