updated readme to show new corrected syntax for deck definition files.

This commit is contained in:
bluesaxman 2020-09-04 22:16:35 -06:00
parent c0d32b6dc3
commit 1d15771c61

View File

@ -8,13 +8,9 @@ An example of a deck definition file:
```
[
{
"dataIndex":0,
"name":"value",
"data":[ "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"]
},
{
"dataIndex":1,
"name":"suit",
"data":[ "♥", "♣", "♠", "♦"]
}
]
@ -28,25 +24,18 @@ A more advanced example uses an array of "decks" to build a single deck.
[
[
{
"dataIndex":0,
"name":"value",
"data":["A","2","3","4","5","6","7","8","9","10","J","Q","K"]
},
{
"dataIndex":1,
"name":"suit",
"data":["♥","♣","♠","♦"]
}
],
[
{
"dataIndex":0,
"name":"color",
"data":["red ", "black "]
},
{
"dataIndex":1,
"name":"joker",
"data":["joker"]
}
]