Skip to content

Instantly share code, notes, and snippets.

@darthneel
Created March 10, 2017 20:45
Show Gist options
  • Save darthneel/00e8966f45ef2b64652985d78d11443f to your computer and use it in GitHub Desktop.
Save darthneel/00e8966f45ef2b64652985d78d11443f 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"
}
]
@budwey
Copy link

budwey commented May 18, 2022

Thanks for the code <3

@elvenhope
Copy link

Thanks for Writing this

@4KENSENS
Copy link

4KENSENS commented Aug 7, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment