RaveNode extends SimpleSearchNode { public void addRaveWin(short p) { addRaveRun(p, 1); } RaveNode(CoordinateSystem coords); void addRaveLoss(short p); void addRaveRun(int p, float w); void addRaveWin(short p); @Override void clear(long fancyHash, CoordinateSystem coords); int getRaveRuns(short p); float getRaveWinRate(short p); float getRaveWins(int p); @Override void recordPlayout(float winProportion, McRunnable runnable, int t); @Override String toString(CoordinateSystem coords);  }
@Test public void testAddRaveWin() { node.addRaveWin(at("a1")); assertEquals(3, node.getRaveRuns(at("a1")), 0.001); assertEquals(2, node.getRaveWins(at("a1")), 0.001); assertEquals(2.0/3.0, node.getRaveWinRate(at("a1")), 0.001); }