Not put flag when the game ends
This commit is contained in:
@@ -101,7 +101,7 @@ function App() {
|
||||
|
||||
const handleCellContextMenu = (event, row, col) => {
|
||||
event.preventDefault();
|
||||
if (activeGame.win === true) {
|
||||
if (activeGame.status === 3) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user