From 21af99f8aecb564e0a3819a92e537e9b25982636 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Sat, 12 Mar 2022 10:11:16 +0300 Subject: [PATCH] Row and column titles on right and bottom --- Field.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Field.cs b/Field.cs index b023498..3789eb9 100644 --- a/Field.cs +++ b/Field.cs @@ -78,7 +78,7 @@ { Console.Write(" " + ((opened.Contains(cells[y * width + x]) || cells[y * width + x].IsMarked) ? cells[y * width + x].Show() : "■")); } - Console.WriteLine(" ║"); + Console.WriteLine(" ║ " + (char)('A' + y)); } Console.Write(" ╚"); for (int i = 0; i < 2 * width + 1; i++) @@ -86,7 +86,12 @@ Console.Write("═"); } Console.WriteLine("╝"); - Console.WriteLine($"Remaining mines: {nmines}."); + Console.Write(" "); + for (int i = 0; i < width;) + { + Console.Write(" " + ++i); + } + Console.WriteLine($"\n\nRemaining mines: {nmines}."); } public bool Open(int y, int x) {