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