RaveNode extends SimpleSearchNode { @Override public String toString(CoordinateSystem coords) { String result = "Total runs: " + super.getTotalRuns() + "\n"; for (final short p : coords.getAllPointsOnBoard()) { if (super.getRuns(p) > 2) { result += toString(p, coords); } } if (super.getRuns(PASS) > 10) { result += toString(PASS, coords); } return result; } 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 testToString() { node.recordPlayout((float) 0.5, new short[] {at("a1"), at("b2"), at("a2")}, 0, 3, new ShortSet(coords.getFirstPointBeyondBoard())); node.toString(); }