Row and column titles on right and bottom
This commit is contained in:
parent
b3e3b50d64
commit
21af99f8ae
9
Field.cs
9
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user