Skip to content

Instantly share code, notes, and snippets.

@kechkibet
Forked from darthneel/deck_of_cards.json
Created September 24, 2021 18:10
Show Gist options
  • Save kechkibet/7c245f0c18154069ae79a0c4bf8c3aa2 to your computer and use it in GitHub Desktop.
Save kechkibet/7c245f0c18154069ae79a0c4bf8c3aa2 to your computer and use it in GitHub Desktop.
JSON structure for a standard playing card deck
[
{
"suit": "hearts",
"value": 2
},
{
"suit": "hearts",
"value": 3
},
{
"suit": "hearts",
"value": 4
},
{
"suit": "hearts",
"value": 5
},
{
"suit": "hearts",
"value": 6
},
{
"suit": "hearts",
"value": 7
},
{
"suit": "hearts",
"value": 8
},
{
"suit": "hearts",
"value": 9
},
{
"suit": "hearts",
"value": 10
},
{
"suit": "hearts",
"value": "J"
},
{
"suit": "hearts",
"value": "Q"
},
{
"suit": "hearts",
"value": "K"
},
{
"suit": "hearts",
"value": "A"
},
{
"suit": "diamonds",
"value": 2
},
{
"suit": "diamonds",
"value": 3
},
{
"suit": "diamonds",
"value": 4
},
{
"suit": "diamonds",
"value": 5
},
{
"suit": "diamonds",
"value": 6
},
{
"suit": "diamonds",
"value": 7
},
{
"suit": "diamonds",
"value": 8
},
{
"suit": "diamonds",
"value": 9
},
{
"suit": "diamonds",
"value": 10
},
{
"suit": "diamonds",
"value": "J"
},
{
"suit": "diamonds",
"value": "Q"
},
{
"suit": "diamonds",
"value": "K"
},
{
"suit": "diamonds",
"value": "A"
},
{
"suit": "clubs",
"value": 2
},
{
"suit": "clubs",
"value": 3
},
{
"suit": "clubs",
"value": 4
},
{
"suit": "clubs",
"value": 5
},
{
"suit": "clubs",
"value": 6
},
{
"suit": "clubs",
"value": 7
},
{
"suit": "clubs",
"value": 8
},
{
"suit": "clubs",
"value": 9
},
{
"suit": "clubs",
"value": 10
},
{
"suit": "clubs",
"value": "J"
},
{
"suit": "clubs",
"value": "Q"
},
{
"suit": "clubs",
"value": "K"
},
{
"suit": "clubs",
"value": "A"
},
{
"suit": "spades",
"value": 2
},
{
"suit": "spades",
"value": 3
},
{
"suit": "spades",
"value": 4
},
{
"suit": "spades",
"value": 5
},
{
"suit": "spades",
"value": 6
},
{
"suit": "spades",
"value": 7
},
{
"suit": "spades",
"value": 8
},
{
"suit": "spades",
"value": 9
},
{
"suit": "spades",
"value": 10
},
{
"suit": "spades",
"value": "J"
},
{
"suit": "spades",
"value": "Q"
},
{
"suit": "spades",
"value": "K"
},
{
"suit": "spades",
"value": "A"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment