Comments (10)
I'm recreating the library, new version will support those..
from deck-of-cards.
Well ok, I thought the work you described here #28 was already merged.
from deck-of-cards.
This wasn't actually initially meant to be an API, but just an experiment (actually the first version was made with Flash over 10 years ago and then with Angular + TweenMax)..
- http://pakastin.fi/flash/kortit.html
- https://www.chromeexperiments.com/experiment/html5-deck-of-cards
from deck-of-cards.
Sorry no, it's still work in progress..
from deck-of-cards.
I tested it more deeply, I could make some good things easily, like
deck.cards[0].enableDragging()
deck.cards[0].setSide('front')
deck.cards[0].disableFlipping()
deck.cards.shuffle()
deck.cards.sort()
var deck2 = new Deck();
deck2.cards.push(deck.pop());
Method names are well intuitive, and that answers at many of my use cases.
from deck-of-cards.
Sounds legit! I haven't use this for a while myself, sorry I wasn't much help 🙂
from deck-of-cards.
nope, i'll submit a PR with that I could do.
Just a thing, do you remember how to update the deck cards view ? When I deck.cards.pop()
a card, the view does not update.
from deck-of-cards.
card.unmount()
should do the trick ;)
https://github.com/pakastin/deck-of-cards/blob/master/lib/card.js#L218-L222
from deck-of-cards.
Started a documentation: #39
from deck-of-cards.
Merged in #39 .
from deck-of-cards.
Related Issues (20)
- How can I know which card I clicked? HOT 1
- card.flip is not a function HOT 1
- Why does poker() not return the cards that were dealt? HOT 3
- TCG use? HOT 7
- University offer HOT 1
- Cards flip to top- and backside randomely HOT 1
- new version HOT 3
- Jokers HOT 5
- open source? HOT 59
- Italian Version deck HOT 8
- SUGGESTION: Removing cards from deck before shuffle HOT 1
- SVG only cards - https://cardmeister.github.io/ HOT 2
- Feature Request: Add multiple decks HOT 3
- Multiplayer: Everyone can see all cards, Any future release on this ? HOT 4
- Source link in app HOT 2
- Ability to shuffle specific piles of cards HOT 3
- Can I create a different deck? HOT 1
- Multiplayer shuffle of double deck produces consistient deck result HOT 1
- Can drag to select multiple cards?
- New version open source
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deck-of-cards.