Examples of EightPuzzleBoard


Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition4MoveRight() {
    // { 6, 5, 4, 0, 1, 8, 7, 3, 2 }
    setGapToPosition4();
    board.moveGapRight();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 1, 0, 8,
        7, 3, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition5MoveUp() {
    // { 6, 5, 4, 1, 0, 8, 7, 3, 2 }
    setGapToPosition5();
    board.moveGapUp();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 0, 4, 1, 5, 8,
        7, 3, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition5MoveDown() {
    // { 6, 5, 4, 1, 0, 8, 7, 3, 2 }
    setGapToPosition5();
    board.moveGapDown();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 1, 3, 8,
        7, 0, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition5MoveLeft() {
    // { 6, 5, 4, 1, 0, 8, 7, 3, 2 }
    setGapToPosition5();
    board.moveGapLeft();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 0, 1, 8,
        7, 3, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition5MoveRight() {
    // { 6, 5, 4, 1, 0, 8, 7, 3, 2 }
    setGapToPosition5();
    board.moveGapRight();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 1, 8, 0,
        7, 3, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition6MoveUp() {
    // { 6, 5, 4, 1, 8, 0, 7, 3, 2 }
    setGapToPosition6();
    board.moveGapUp();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 0, 1, 8, 4,
        7, 3, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition6MoveDown() {
    // { 6, 5, 4, 1, 8, 0, 7, 3, 2 }
    setGapToPosition6();
    board.moveGapDown();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 1, 8, 2,
        7, 3, 0 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition6MoveLeft() {
    // { 6, 5, 4, 1, 8, 0, 7, 3, 2 }
    setGapToPosition6();
    board.moveGapLeft();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 1, 0, 8,
        7, 3, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition6MoveRight() {
    // { 6, 5, 4, 1, 8, 0, 7, 3, 2 }
    setGapToPosition6();
    board.moveGapRight();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 1, 8, 0,
        7, 3, 2 }), board);
  }
View Full Code Here

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

  @Test
  public void testPosition7MoveUp() {
    // { 6, 5, 4, 7, 1, 8, 0, 3, 2 }
    setGapToPosition7();
    board.moveGapUp();
    Assert.assertEquals(new EightPuzzleBoard(new int[] { 6, 5, 4, 0, 1, 8,
        7, 3, 2 }), board);
  }
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.