mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
forefeit -> forfeit
This commit is contained in:
@@ -117,7 +117,7 @@ module.exports = class ConnectFourCommand extends Command {
|
|||||||
} else {
|
} else {
|
||||||
const emoji = userTurn ? playerOneEmoji : playerTwoEmoji;
|
const emoji = userTurn ? playerOneEmoji : playerTwoEmoji;
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${emoji} ${user}, which column do you pick? Type \`end\` to forefeit.
|
${emoji} ${user}, which column do you pick? Type \`end\` to forfeit.
|
||||||
Can't think of a move? Use \`play for me\`.
|
Can't think of a move? Use \`play for me\`.
|
||||||
${opponent.bot ? `I placed mine in **${lastMove}**.` : `Previous Move: **${lastMove}**`}
|
${opponent.bot ? `I placed mine in **${lastMove}**.` : `Previous Move: **${lastMove}**`}
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ module.exports = class CramCommand extends Command {
|
|||||||
while (!winner) {
|
while (!winner) {
|
||||||
const user = userTurn ? msg.author : opponent;
|
const user = userTurn ? msg.author : opponent;
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${user}, at what coordinates do you want to place your block? Type \`end\` to forefeit.
|
${user}, at what coordinates do you want to place your block? Type \`end\` to forfeit.
|
||||||
You must also choose a direction. (ex. v1,1 or h3,4).
|
You must also choose a direction. (ex. v1,1 or h3,4).
|
||||||
|
|
||||||
${this.displayBoard(board, userEmoji, oppoEmoji)}
|
${this.displayBoard(board, userEmoji, oppoEmoji)}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ module.exports = class DomineeringCommand extends Command {
|
|||||||
while (!winner) {
|
while (!winner) {
|
||||||
const user = userTurn ? msg.author : opponent;
|
const user = userTurn ? msg.author : opponent;
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${user}, at what coordinates do you want to place your block (ex. 1,1)? Type \`end\` to forefeit.
|
${user}, at what coordinates do you want to place your block (ex. 1,1)? Type \`end\` to forfeit.
|
||||||
Your pieces are **${userTurn ? 'vertical' : 'horizontal'}**.
|
Your pieces are **${userTurn ? 'vertical' : 'horizontal'}**.
|
||||||
|
|
||||||
${this.displayBoard(board, userEmoji, oppoEmoji)}
|
${this.displayBoard(board, userEmoji, oppoEmoji)}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ module.exports = class DotsAndBoxesCommand extends Command {
|
|||||||
while (taken.length < 40) {
|
while (taken.length < 40) {
|
||||||
const user = userTurn ? msg.author : opponent;
|
const user = userTurn ? msg.author : opponent;
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${user}, which connection do you pick? Type \`end\` to forefeit.
|
${user}, which connection do you pick? Type \`end\` to forfeit.
|
||||||
_Format like \`1-2\` or \`0-5\`. Any two spaces bordering **vertical or horizontal**._
|
_Format like \`1-2\` or \`0-5\`. Any two spaces bordering **vertical or horizontal**._
|
||||||
|
|
||||||
P1: ${msg.author.tag} | P2: ${opponent.tag}
|
P1: ${msg.author.tag} | P2: ${opponent.tag}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ module.exports = class JengaCommand extends Command {
|
|||||||
i = Math.floor(Math.random() * board.length);
|
i = Math.floor(Math.random() * board.length);
|
||||||
} else {
|
} else {
|
||||||
const text = stripIndents`
|
const text = stripIndents`
|
||||||
${user}, which block do you want to remove? Type \`end\` to forefeit.
|
${user}, which block do you want to remove? Type \`end\` to forfeit.
|
||||||
Each block you go lower on the tower, the more likely the tower falls.
|
Each block you go lower on the tower, the more likely the tower falls.
|
||||||
`;
|
`;
|
||||||
await msg.say(`${text}\n\n${this.displayBoard(board)}`);
|
await msg.say(`${text}\n\n${this.displayBoard(board)}`);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ module.exports = class NimCommand extends Command {
|
|||||||
await msg.say(`For my turn, I remove **${turn[1]}** ${objectEmoji} from **row ${turn[0] + 1}**.`);
|
await msg.say(`For my turn, I remove **${turn[1]}** ${objectEmoji} from **row ${turn[0] + 1}**.`);
|
||||||
} else {
|
} else {
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${user}, from which row do you want to remove from? Type \`end\` to forefeit.
|
${user}, from which row do you want to remove from? Type \`end\` to forfeit.
|
||||||
After this step, you will decide how many ${objectEmoji} to remove from that row.
|
After this step, you will decide how many ${objectEmoji} to remove from that row.
|
||||||
|
|
||||||
${this.displayBoard(board, objectEmoji)}
|
${this.displayBoard(board, objectEmoji)}
|
||||||
@@ -97,7 +97,7 @@ module.exports = class NimCommand extends Command {
|
|||||||
rowPicked = 1;
|
rowPicked = 1;
|
||||||
} else {
|
} else {
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${user}, how many ${objectEmoji} do you want to take from row ${picked}? Type \`end\` to forefeit.
|
${user}, how many ${objectEmoji} do you want to take from row ${picked}? Type \`end\` to forfeit.
|
||||||
If you want to go back, type \`back\`.
|
If you want to go back, type \`back\`.
|
||||||
|
|
||||||
${nums[picked - 1]}${objectEmoji.repeat(row)}
|
${nums[picked - 1]}${objectEmoji.repeat(row)}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ module.exports = class ObstructionCommand extends Command {
|
|||||||
while (!winner) {
|
while (!winner) {
|
||||||
const user = userTurn ? msg.author : opponent;
|
const user = userTurn ? msg.author : opponent;
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${user}, at what coordinates do you want to place your piece (ex. 1,1)? Type \`end\` to forefeit.
|
${user}, at what coordinates do you want to place your piece (ex. 1,1)? Type \`end\` to forfeit.
|
||||||
Every piece you place will obstruct the 8 pieces around it.
|
Every piece you place will obstruct the 8 pieces around it.
|
||||||
|
|
||||||
${this.displayBoard(board)}
|
${this.displayBoard(board)}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ module.exports = class TicTacToeCommand extends Command {
|
|||||||
choice = tictactoe.bestMove(this.convertBoard(sides), { computer: 'o', opponent: 'x' });
|
choice = tictactoe.bestMove(this.convertBoard(sides), { computer: 'o', opponent: 'x' });
|
||||||
} else {
|
} else {
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${user}, which side do you pick? Type \`end\` to forefeit.
|
${user}, which side do you pick? Type \`end\` to forfeit.
|
||||||
|
|
||||||
${this.displayBoard(sides)}
|
${this.displayBoard(sides)}
|
||||||
`);
|
`);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ module.exports = class MinesweeperCommand extends Command {
|
|||||||
while (win === null) {
|
while (win === null) {
|
||||||
const currentTime = moment.duration(new Date() - startTime).format('mm:ss');
|
const currentTime = moment.duration(new Date() - startTime).format('mm:ss');
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
${msg.author}, what coordinates do you pick (ex. 4,5)? Type \`end\` to forefeit.
|
${msg.author}, what coordinates do you pick (ex. 4,5)? Type \`end\` to forfeit.
|
||||||
Type \`flag <coordinates>\` to flag a spot as a bomb. To remove a flag, run it again.
|
Type \`flag <coordinates>\` to flag a spot as a bomb. To remove a flag, run it again.
|
||||||
|
|
||||||
${this.displayBoard(game.board, game.mask, flagged, cheatMode)}
|
${this.displayBoard(game.board, game.mask, flagged, cheatMode)}
|
||||||
|
|||||||
Reference in New Issue
Block a user