167168169170171172173
public void reset() { super.reset(); if ( ((GoBoard) getBoard()).getHandicap() > 0 ) { player1sTurn_ = false; } scoreCache_ = new ScoreCache(); }
35363738394041424344
} @Test public void testGetInstance() { // make sure it's a singleton ScoreCache o1 = ScoreCache.getInstance(); ScoreCache o2 = ScoreCache.getInstance(); assertTrue(o1 == o2); }