Skip to content

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

Repository files navigation

MakeCode Arcade Playing Cards

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published