AIMA.Core.Environment.EightPuzzle.EightPuzzleBoard.getPositions C# (CSharp) Method

getPositions() public method

public getPositions ( ) : List
return List
	public List<XYLocation> getPositions() {
		List<XYLocation> retVal = new List<XYLocation>();
		for (int i = 0; i < 9; i++) {
			int absPos = getPositionOf(i);
			XYLocation loc = new XYLocation(getXCoord(absPos),
					getYCoord(absPos));
			retVal.Add(loc);

		}
		return retVal;
	}