No description
Find a file
2020-09-04 22:16:35 -06:00
css.css added UI css 2020-05-20 11:11:45 -06:00
index.html removed explicit indexing, since changing to an array of objects fixed the ordering problem already 2020-09-04 22:14:27 -06:00
jokers.ddf removed explicit indexing, since changing to an array of objects fixed the ordering problem already 2020-09-04 22:14:27 -06:00
README.md updated readme to show new corrected syntax for deck definition files. 2020-09-04 22:16:35 -06:00
standardfaces.ddf removed explicit indexing, since changing to an array of objects fixed the ordering problem already 2020-09-04 22:14:27 -06:00
uno.ddf removed explicit indexing, since changing to an array of objects fixed the ordering problem already 2020-09-04 22:14:27 -06:00

Deckard

The deck shuffeling and card drawing program

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.

An example of a deck definition file:

[
	{
		"data":[ "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"]
	},
	{
		"data":[ "♥", "♣", "♠", "♦"]
	}
]

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"]
		}
	]
]