Added notation for wrong markers

This commit is contained in:
Masahiko AMANO
2022-03-03 00:44:55 +03:00
parent f7ffbebdae
commit ae8de489e3
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -160,6 +160,8 @@
{
if (!opened.Contains(cells[i]))
opened.Add(cells[i]);
if (cells[i].isMarked && !cells[i].isMine)
cells[i].setWrong();
}
}
public void mark(int y, int x) { cells[y * width + x].mark(); }