Package main.arrays_06.aufgabe2

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


        new int[] { 1, 0, 2, 3 },
        new int[] { 4, 5, 6, 7 },
        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);
View Full Code Here


        new int[] { 1, 2, 3, 4 },
        new int[] { 5, 6, 7, 8 },
        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.