From d74b7a9413093110496b08e5d9cbf3005103e291 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Thu, 3 Mar 2022 13:12:11 +0300 Subject: [PATCH] A little bug fix --- Field.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Field.cs b/Field.cs index 346ae3d..6237ad2 100644 --- a/Field.cs +++ b/Field.cs @@ -160,7 +160,11 @@ cells[i].SetWrong(); } } - public void Mark(int y, int x) { cells[y * width + x].Mark(); } + public void Mark(int y, int x) + { + if (!opened.Contains(cells[y * width + x])) + cells[y * width + x].Mark(); + } public void Unmark(int y, int x) { cells[y * width + x].Unmark(); } public bool Check() {