-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
28 lines (28 loc) · 1.57 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
P1SYMBOL: ':o:',
P2SYMBOL: ':heavy_multiplication_x:',
boardSymbolMap: {
'1': '1',
'2': '2',
'3': '3',
'4': '4',
'5': '5',
'6': '6',
'7': '7',
'8': '8',
'9': '9'
},
GAME_ALREADY_EXIST: `Sorry,there's already a game in progress in this channel.Try playing in a different channel.`,
NO_GAME_EXISTS: `There is currently no game in this channel.`,
OPPONENT_NOT_IN_CHANNEL: `Sorry, you can only play with members of this channel.`,
INVALID_COMMAND: "Sorry, I didn't quite catch that. Enter `/ttt help` to see all valid commands",
INVALID_PLAYER: `Nice try! You're not one of the players involved in the game.`,
INVALID_TURN: `Hey buddy! It's not your turn...`,
INVALID_END: `Nice try! You can't end the game if you're not in it...`,
INVALID_MOVE: `That's not a valid move. Choose from one of the numbered spots on the board`,
INVALID_PLAY_REQUEST: "Sorry, I didn't quite catch that. Try `/ttt play @username` to start a game.",
WIN_MESSAGE: `congrats :raised_hands:! You won the game. Now let's get back to work guys`,
DRAW_MESSAGE: `:neutral_face: the game is a draw...`,
END_MESSAGE: `:sob: fine, I'll end the game`,
HELP_MESSAGE: "Use these commands to play tic tac toe:\n`/ttt play @username` to start a game\n`/ttt move #` to move to spot #\n`/ttt forfeit` to quit the game\n`/ttt status` to display the game's current state\n`/ttt help` to list all possible commands\nP.S visit https://en.wikipedia.org/wiki/Tic-tac-toe to review the rules"
};