Comments (12)
Well, it's the best API that I could find. :)
from deck-of-cards.
Yes, that's something I've thought about also. Right now I'm busy creating new version of my minimal vanillajs "framework", frzr.js.org - I might create a new version of deck of cards with FRZR once I get that ready. I get back to this issue..
from deck-of-cards.
If you have some quick fix in mind, just drop a pull request and I'll check that out ;)
from deck-of-cards.
Btw, with var deck = new Deck(true)
you get jokers in! ;)
from deck-of-cards.
I have made some progress towards this. In my branch (http://github.com/jorl17/deck-of-cards) I have implemented a way for a Deck to hold multiple decks (e.g. it can hold two of each kind, or three, or four). Making a pull request (adjust code as you wish)
I have added the ability to represent cards by their english names (e.g. "Jack of Spades"). This helps with more generic and "exotic" decks in the future.
Thanks for your great work on this library!
from deck-of-cards.
Wow, you've been busy! I'll get back to this tomorrow.. Thanks!
from deck-of-cards.
Also, when I want to represent a player's hand, initially empty, I would like to create a Deck
without any cards in it, and move/mount them in manually afterwards.
from deck-of-cards.
I've started a rewrite of this project, that's the reason updates are a bit "frozen" at the moment..
from deck-of-cards.
There's so many things could be done better.. When I started the project, it was just a demo – it was never designed to be an API.
from deck-of-cards.
Can imagine :D
from deck-of-cards.
@pakastin Hey, how can I change the number of cards in my js ? Thank you
from deck-of-cards.
Coming in the next version!
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.