-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
60 lines (59 loc) · 1.53 KB
/
index.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
48
49
50
51
52
53
54
55
56
57
58
59
60
const deck = [
// hearts
{ rank: "A", type: "H" },
{ rank: "2", type: "H" },
{ rank: "3", type: "H" },
{ rank: "4", type: "H" },
{ rank: "5", type: "H" },
{ rank: "6", type: "H" },
{ rank: "7", type: "H" },
{ rank: "8", type: "H" },
{ rank: "9", type: "H" },
{ rank: "10", type: "H" },
{ rank: "J", type: "H" },
{ rank: "Q", type: "H" },
{ rank: "K", type: "H" },
// spades
{ rank: "A", type: "S" },
{ rank: "2", type: "S" },
{ rank: "3", type: "S" },
{ rank: "4", type: "S" },
{ rank: "5", type: "S" },
{ rank: "6", type: "S" },
{ rank: "7", type: "S" },
{ rank: "8", type: "S" },
{ rank: "9", type: "S" },
{ rank: "10", type: "S" },
{ rank: "J", type: "S" },
{ rank: "Q", type: "S" },
{ rank: "K", type: "S" },
// diamonds
{ rank: "A", type: "D" },
{ rank: "2", type: "D" },
{ rank: "3", type: "D" },
{ rank: "4", type: "D" },
{ rank: "5", type: "D" },
{ rank: "6", type: "D" },
{ rank: "7", type: "D" },
{ rank: "8", type: "D" },
{ rank: "9", type: "D" },
{ rank: "10", type: "D" },
{ rank: "J", type: "D" },
{ rank: "Q", type: "D" },
{ rank: "K", type: "D" },
// clubs
{ rank: "A", type: "C" },
{ rank: "2", type: "C" },
{ rank: "3", type: "C" },
{ rank: "4", type: "C" },
{ rank: "5", type: "C" },
{ rank: "6", type: "C" },
{ rank: "7", type: "C" },
{ rank: "8", type: "C" },
{ rank: "9", type: "C" },
{ rank: "10", type: "C" },
{ rank: "J", type: "C" },
{ rank: "Q", type: "C" },
{ rank: "K", type: "C" }
];
module.exports = Object.freeze(deck);