/// <summary> /// Add move to gameboard /// </summary> /// <param name="gameboardPosition"></param> /// <param name="PlayerPiece"></param> public void SetPlayerPiece(GameboardPosition gameboardPosition, string PlayerPiece) { //used to match array structure CurrentBoard[gameboardPosition.Row][gameboardPosition.Column] = PlayerPiece; //switch to the next player SetNextPlayer(); }
/// <summary> /// method used to see if positions are taken on the gameboard /// </summary> /// <param name="gameboardPosition"></param> /// <returns>True if there are positions available on board</returns> public bool GameboardPositionAvailability(GameboardPosition gameboardPosition) { //check if board is empty if (CurrentBoard[gameboardPosition.Row][gameboardPosition.Column] == PLAYER_PIECE_NONE) { return(true); } else { return(false); } }