deckard/README.md

44 lines
820 B
Markdown
Raw Permalink Normal View History

# Deckard
2020-05-19 15:05:12 -06:00
# The deck shuffeling and card drawing program
2020-05-19 12:16:08 -06:00
Deckard is a simple deck shuffeling and card drawing program, its designed to use deck definition files (written as a JSON object filled with only named arrays. Its also named after Deckard from *do androids dream of electric sheep* by Isacc Asimov.
2020-05-20 11:30:55 -06:00
An example of a deck definition file:
```
[
{
"data":[ "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"]
},
{
"data":[ "♥", "♣", "♠", "♦"]
}
]
2020-05-20 11:30:55 -06:00
```
Using this you can make all kinds of decks.
A more advanced example uses an array of "decks" to build a single deck.
```
[
[
{
"data":["A","2","3","4","5","6","7","8","9","10","J","Q","K"]
},
{
"data":["♥","♣","♠","♦"]
}
],
[
{
"data":["red ", "black "]
},
{
"data":["joker"]
}
]
]
```