Exemple #1
0
 @Test
 public void testPointBuild2() {
   b = g.getMyBoard();
   try {
     /* black on 14 & 12 heading for 0; white on 4 (has long way to go)*/
     b.makePointBuild2Board();
     assertNotNull(b);
   } catch (Exception e) {
     /* isn't there a way to test without catching excetions? */
     fail(e.toString());
   }
   g.setCurrentPlayer(aiColor);
   g.myAI.setHowManyTurnsSoFar(4); // so AI uses pointBuilderStrategy
   b.myDice.roll(4, 3);
 }