public static void Main() { InitBoard(); string input; while ((input = Console.ReadLine()) != "END") { Piece.GetInfo(input); if (_board[Piece.CurrentPos.Row][Piece.CurrentPos.Col] != Piece.PeiceSymbol) { OutputMessage.ThereIsNoSuchAPiece(); continue; } if (!Piece.IsValid) { OutputMessage.InvalidMove(); continue; } if (!IsInRange(Piece.NewPos)) { OutputMessage.MoveGoOutOfBoard(); continue; } _board[Piece.CurrentPos.Row][Piece.CurrentPos.Col] = "x"; _board[Piece.NewPos.Row][Piece.NewPos.Col] = Piece.PeiceSymbol; } }