This commit is contained in:
Dragon Fire
2021-01-15 19:38:46 -05:00
parent ad3a365771
commit 6134b92636
+2 -2
View File
@@ -33,8 +33,8 @@ module.exports = class MinesweeperCommand extends Command {
game.PlaceBombs(size + 1);
const taken = [];
let win = null;
game.onWin(() => { win = true; });
game.onLose(() => { win = false; });
game.onWin = () => { win = true; };
game.onLose = () => { win = false; };
while (!win) {
await msg.say(stripIndents`
${user}, what coordinates do you pick (ex. 4,5)? Type \`end\` to forefeit.