mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Need to test this
This commit is contained in:
@@ -48,6 +48,7 @@ module.exports = class MinesweeperCommand extends Command {
|
|||||||
if (!coordPicked) return false;
|
if (!coordPicked) return false;
|
||||||
const x = Number.parseInt(coordPicked[1], 10);
|
const x = Number.parseInt(coordPicked[1], 10);
|
||||||
const y = Number.parseInt(coordPicked[2], 10);
|
const y = Number.parseInt(coordPicked[2], 10);
|
||||||
|
console.log(game.mask[x - 1][y - 1]);
|
||||||
if (game.mask[x - 1][y - 1]) return false;
|
if (game.mask[x - 1][y - 1]) return false;
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user