robo-technical-group / pxt-arcade-playing-cards

Extension for representing playing cards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MakeCode Arcade Playing Cards

Build Status

Extension used to represent playing cards. Build your own custom decks! Works with Blocks now, too!

Usage

To create a single deck of poker cards:

let deck: Shoe = playingCards.createDeck()

To create a single deck of poker cards with jokers:

let deck: Shoe = playingCards.createDeck(DeckType.Poker, 2)

To create a shoe of poker cards with three decks:

let deck: Shoe = playingCards.createShoe(DeckType.Poker, 3)

There are three standard deck types:

DeckType.Poker    // Default
DeckType.Pinochle
DeckType.Euchre

See the sample project (first item in the TODO list) for information on creating a custom deck.

TODO

Visit the following links to read more about building MakeCode custom blocks and extensions:

License

MIT License. See LICENSE for more information.

Supported targets

  • for PXT/arcade (The metadata above is needed for package search.)

About

Extension for representing playing cards

License:MIT License


Languages

Language:TypeScript 99.9%Language:Makefile 0.1%