updated readme to show new corrected syntax for deck definition files.
This commit is contained in:
parent
c0d32b6dc3
commit
1d15771c61
13
README.md
13
README.md
@ -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"]
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user