PatternExtractor { private static int[] rotate90Degrees(int[] colors) { int[] result = new int[8]; result[0] = colors[1]; result[1] = colors[3]; result[2] = colors[0]; result[3] = colors[2]; result[4] = colors[6]; result[5] = colors[4]; result[6] = colors[7]; result[7] = colors[5]; return result; } PatternExtractor(boolean verbose); static void main(String[] args);  }
@Test public void testRotate90Degrees() { extractor.analyzeMove(coords.at("A5")); board.play("a5"); extractor.analyzeMove(coords.at("B6")); board.play("b6"); extractor.analyzeMove(coords.at("A7")); board.play("a7"); extractor.analyzeMove(coords.at("A6")); board.play("a6"); assertEquals(0.5, extractor.getWinRate(43425), 0.01); assertEquals(1.0, extractor.getWinRate(47900), 0.01); assertEquals(1.0, extractor.getWinRate(44867), 0.01); assertEquals(1.0, extractor.getWinRate(64193), 0.01); }