/// <summary> /// Change board state /// </summary> /// <param name="player"></param> /// <param name="attack"></param> /// <param name="newBoardState"></param> public void ChangePlayerBoardState(Player player, Attack attack, PositionState newBoardState) { var oldState = player.BoardLastState; player.Board[attack.Column - 1, attack.Line - 1] = newBoardState; // Log the board stater tracker _logger.LogWarning(string.Format("The player {0}'s board at position column {1} and line {2} was {3} and now is {4}", player.Number, attack.Column, attack.Line, oldState.ToString(), newBoardState.ToString())); // Due to the limitations with Microsoft Ilogger not having writing the text in a correct sequence on the screen. Thread.Sleep(2); }