-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
47 lines (41 loc) · 850 Bytes
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const MAP_LENGTH = 20;
const CAMEL = {
red: 'red',
yellow: 'yellow',
green: 'green',
blue: 'blue',
purple: 'purple',
white: 'white',
black: 'black',
};
const CAMEL_NAME = {
[CAMEL.red]: '红',
[CAMEL.yellow]: '黄',
[CAMEL.green]: '绿',
[CAMEL.blue]: '蓝',
[CAMEL.purple]: '紫',
[CAMEL.white]: '白',
[CAMEL.black]: '黑',
};
const CAMEL_COLOR = {
[CAMEL.red]: 'red',
[CAMEL.yellow]: 'yellow',
[CAMEL.green]: 'green',
[CAMEL.blue]: 'blue',
[CAMEL.purple]: 'purple',
[CAMEL.white]: '#ccc',
[CAMEL.black]: 'black',
};
const PLAYER_CAMEL = [CAMEL.red, CAMEL.yellow, CAMEL.green, CAMEL.blue, CAMEL.purple];
const DICE = {
red: CAMEL.red,
yellow: CAMEL.yellow,
green: CAMEL.green,
blue: CAMEL.blue,
purple: CAMEL.purple,
whiteBlack: 'whiteBlack',
};
const TRAP = {
plus: 1,
minus: -1,
};