Package main.arrays_06.aufgabe2

Examples of main.arrays_06.aufgabe2.GameBoard.play()


        new int[] { 8, 9, 10, 11 },
        new int[] { 12, 13, 14, 15 }
    });
    b.startGame();
    Assert.assertFalse(b.isSolved());
    b.play(5);
    Assert.assertFalse(b.isSolved());
    b.play(5);
    b.play(1);
    Assert.assertFalse(b.isSolved());
  }
View Full Code Here


    });
    b.startGame();
    Assert.assertFalse(b.isSolved());
    b.play(5);
    Assert.assertFalse(b.isSolved());
    b.play(5);
    b.play(1);
    Assert.assertFalse(b.isSolved());
  }
 
  @Test
View Full Code Here

    b.startGame();
    Assert.assertFalse(b.isSolved());
    b.play(5);
    Assert.assertFalse(b.isSolved());
    b.play(5);
    b.play(1);
    Assert.assertFalse(b.isSolved());
  }
 
  @Test
  public void testEasyGameWithModifiedVictoryCondition() throws Exception {
View Full Code Here

        new int[] { 9, 10, 11, 12 },
        new int[] { 13, 14, 0, 15 }
    });
    b.startGame();
    Assert.assertFalse(b.isSolved());
    b.play(15);
    Assert.assertTrue(b.isSolved());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.