PatternFinder { static double distanceTo(short[] offset) { double x = offset[0]; double y = offset[1]; return Math.sqrt(x * x + y * y); }  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 testDistanceTo() { assertEquals(5.0, distanceTo(new short[] {3, 4}), 0.001); }