-
Notifications
You must be signed in to change notification settings - Fork 0
/
cards.js
56 lines (56 loc) · 2.53 KB
/
cards.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
function getAllCards() {
return [
{card: "A♦", rank: 0, face: "diams"},
{card: "2♦", rank: 1, face: "diams"},
{card: "3♦", rank: 2, face: "diams"},
{card: "4♦", rank: 3, face: "diams"},
{card: "5♦", rank: 4, face: "diams"},
{card: "6♦", rank: 5, face: "diams"},
{card: "7♦", rank: 6, face: "diams"},
{card: "8♦", rank: 7, face: "diams"},
{card: "9♦", rank: 8, face: "diams"},
{card: "10♦", rank: 9, face: "diams"},
{card: "J♦", rank: 10, face: "diams"},
{card: "Q♦", rank: 11, face: "diams"},
{card: "K♦", rank: 12, face: "diams"},
{card: "A♠", rank: 13, face: "spades"},
{card: "2♠", rank: 1, face: "spades"},
{card: "3♠", rank: 2, face: "spades"},
{card: "4♠", rank: 3, face: "spades"},
{card: "5♠", rank: 4, face: "spades"},
{card: "6♠", rank: 5, face: "spades"},
{card: "7♠", rank: 6, face: "spades"},
{card: "8♠", rank: 7, face: "spades"},
{card: "9♠", rank: 8, face: "spades"},
{card: "10♠", rank: 9, face: "spades"},
{card: "J♠", rank: 10, face: "spades"},
{card: "Q♠", rank: 11, face: "spades"},
{card: "K♠", rank: 12, face: "spades"},
{card: "A♥", rank: 0, face: "hearts"},
{card: "2♥", rank: 1, face: "hearts"},
{card: "3♥", rank: 2, face: "hearts"},
{card: "4♥", rank: 3, face: "hearts"},
{card: "5♥", rank: 4, face: "hearts"},
{card: "6♥", rank: 5, face: "hearts"},
{card: "7♥", rank: 6, face: "hearts"},
{card: "8♥", rank: 7, face: "hearts"},
{card: "9♥", rank: 8, face: "hearts"},
{card: "10♥", rank: 9, face: "hearts"},
{card: "J♥", rank: 10, face: "hearts"},
{card: "Q♥", rank: 11, face: "hearts"},
{card: "K♥", rank: 12, face: "hearts"},
{card: "A♣", rank: 0, face: "clubs"},
{card: "2♣", rank: 1, face: "clubs"},
{card: "3♣", rank: 2, face: "clubs"},
{card: "4♣", rank: 3, face: "clubs"},
{card: "5♣", rank: 4, face: "clubs"},
{card: "6♣", rank: 5, face: "clubs"},
{card: "7♣", rank: 6, face: "clubs"},
{card: "8♣", rank: 7, face: "clubs"},
{card: "9♣", rank: 8, face: "clubs"},
{card: "10♣", rank: 9, face: "clubs"},
{card: "J♣", rank: 10, face: "clubs"},
{card: "Q♣", rank: 11, face: "clubs"},
{card: "K♣", rank: 12, face: "clubs"},
]
}