Examples of EightPuzzleBoard


Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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

Examples of aima.core.environment.eightpuzzle.EightPuzzleBoard

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