src/PaperSoccerAI/GameBoard.cs
/// <summary>
/// Adds a single move to the board.
/// </summary>
/// <param name="dir"></param>
/// <returns>true if the move was successful</returns>
Adds a single move to the board.
Adds a single move to the board .
public bool AddMove(Direction dir) {
			bool turnWillEnd = GetBoardEdges(Tools.GetPoint(ballPos, dir)).IsEmpty();
			bool moveResult = AddMove(dir, ballPos, true);
			if (moveResult == false)
				return moveResult;
			if (turnWillEnd)
				this.EndTurn();
			return moveResult;
		}
public bool AddMove ( Direction dir ) { bool turnWillEnd = GetBoardEdges ( Tools . GetPoint ( ballPos , dir ) ) . IsEmpty ( ) ; bool moveResult = AddMove ( dir , ballPos , true ) ; if ( moveResult == false ) return moveResult ; if ( turnWillEnd ) this . EndTurn ( ) ; return moveResult ; }
Adds a single move to the board.
Adds a single move to the board .
true if the move was successful
true if the move was successful
dir
Direction
None