-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.mjs
More file actions
33 lines (22 loc) · 731 Bytes
/
constants.mjs
File metadata and controls
33 lines (22 loc) · 731 Bytes
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
29
30
31
32
33
const PLAYER_ONE_STORAGE_KEY = "player one";
const PLAYER_TWO_STORAGE_KEY = "player two";
const NUM_BOARDS = 9;
const NUM_TILES_PER_BOARD = 9;
const CONTINUE = "continue";
const DRAW = "draw";
// timer consts
const PLAYER_START_TIME = 10;
// networking constants
const INITIALIZE = "initialize";
const NEW_MOVE = "new move";
const WAIT_FOR_OTHER_PLAYER = "wait";
const RESETTED = "resetted";
const RESET = "reset";
const GAME_OVER = "game over";
const WINNER = "winner";
const LOSER = "loser";
export {
PLAYER_ONE_STORAGE_KEY, PLAYER_TWO_STORAGE_KEY, NUM_BOARDS, NUM_TILES_PER_BOARD, CONTINUE, DRAW,
PLAYER_START_TIME, INITIALIZE, NEW_MOVE, WINNER, LOSER, RESET, WAIT_FOR_OTHER_PLAYER, RESETTED,
GAME_OVER
};