MCPcopy
hub / github.com/deck-of-cards/deck-of-cards

github.com/deck-of-cards/deck-of-cards @v0.1.9 sqlite

repository ↗ · DeepWiki ↗ · release v0.1.9 ↗
37 symbols 62 edges 23 files 0 documented · 0%
README

HTML5 Deck of Cards

Gitter

Pure vanilla JS (+ CSS3) – no dependencies, by Juha Lindstedt & contributors.

https://deck-of-cards.js.org

Install from Google Chrome Web Store

Frontside card graphics are slightly modified from Chris Aguilar's awesome Vector Playing Card Graphics Set.

Also check out my RE:DOM and HTML5 Node Garden projects!

License

LGPL if you use Chris Aguilar's vector playing cards. Otherwise MIT.

Download

Installation from npm

npm install deck-of-cards

Build instructions

npm install
npm start

(starts watching for changes..)

Latest changes

  • 0.1.4 card.animateTo() -method added –> simplier modules! Simple example of usage
  • 0.1.3 JS animations (instead of CSS transitions)
  • 0.1.2 Backside graphics + setRankSuit (+ card.value -> card.rank!)
  • 0.1.1 Better organized modules + Chrome app
  • 0.1.0 Realistic face graphics, notice change of license for now..
  • 0.0.4 winning mode, simpler shuffling, CSS box-shadow change
  • 0.0.3 big refactoring – code now easier to follow and in smaller pieces
  • 0.0.2 made intro shorter & added "poker"
  • 0.0.1 initial version

Where's what?

css/ - CSS source (stylus + nib) of the example

chrome/ - Chrome Web Store app source

dist/ - deck.js & deck.min.js

example/ - https://deck-of-cards.js.org

lib/ - JS (ES6) source of dist/deck.js - deck.js is also the main file

views/ - HTML source of the example

Note to self: todo

  • Make z-index temporary by reordering DOM elements between actions
  • Enhance API, make more flexible

Featured on

  • https://reddit.com/r/InternetIsBeautiful/comments/3jmq97/html5_deck_of_cards/
  • https://news.ycombinator.com/item?id=10164513
  • http://tympanus.net/codrops/collective/collective-184/
  • https://github.com/trending?since=weekly
  • https://twitter.com/fwa/status/639719192158171136
  • https://twitter.com/search?q=%22html5+deck+of+cards%22
  • https://theslackpost.com/tmpg
  • http://news.js.org/
  • http://boredmachine.com/go/rKv6A
  • http://www.moongift.jp/2015/09/html5-deck-of-cards-html5%E8%A3%BD%E3%81%AE%E3%83%88%E3%83%A9%E3%83%B3%E3%83%97/
  • http://www.blogduwebdesign.com/ressources-jeux/ressourcescreer-manipuler-cartes-HTML-Javascript-nodejs-Ruby/1933
  • http://fex.baidu.com/blog/2015/09/fex-weekly-07/

Core symbols most depended-on inside this repo

next
called by 9
lib/queue.js
addListener
called by 6
lib/card.js
removeListener
called by 4
lib/card.js
watch
called by 3
index.js
printMessage
called by 3
example/example.js
queue
called by 2
lib/queue.js
deg2rad
called by 2
lib/modules/fan.js
exec
called by 1
index.js

Shape

Function 37

Languages

TypeScript100%

Modules by API surface

lib/card.js10 symbols
lib/observable.js4 symbols
lib/deck.js4 symbols
example/example.js4 symbols
lib/queue.js3 symbols
lib/modules/fan.js2 symbols
index.js2 symbols
lib/translate.js1 symbols
lib/modules/sort.js1 symbols
lib/modules/shuffle.js1 symbols
lib/modules/poker.js1 symbols
lib/modules/intro.js1 symbols

Dependencies from manifests, versioned

babel5.8.23 · 1×
chokidar1.0.5 · 1×
jade1.11.0 · 1×
nib1.1.0 · 1×
rollup0.16.4 · 1×
stylus0.52.0 · 1×
uglify-js2.4.24 · 1×

For agents

$ claude mcp add deck-of-cards \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact