Package aima.core.util.datastructure

Examples of aima.core.util.datastructure.XYLocation


  }

  @Test
  public void testSetBoard() {
    List<XYLocation> passedIn = new ArrayList<XYLocation>();
    passedIn.add(new XYLocation(1, 1));
    passedIn.add(new XYLocation(0, 2));
    passedIn.add(new XYLocation(2, 2));
    passedIn.add(new XYLocation(2, 1));
    passedIn.add(new XYLocation(0, 1));
    passedIn.add(new XYLocation(0, 0));
    passedIn.add(new XYLocation(1, 0));
    passedIn.add(new XYLocation(2, 0));
    passedIn.add(new XYLocation(1, 2));
    board.setBoard(passedIn);
    Assert.assertEquals(new XYLocation(1, 1), board.getLocationOf(0));
    Assert.assertEquals(new XYLocation(0, 2), board.getLocationOf(1));
  }
View Full Code Here

TOP

Related Classes of aima.core.util.datastructure.XYLocation

Copyright © 2018 www.massapicom. 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.