Old one has better mobile support too
I couldn't get multiplayer to work for me and I'm not sure why not. Chrome + Incognito Chrome.
Might be overloaded because of HN, i'll check and add capacity..
* * *
It's fisher-yates with multiple iterations, so should be pretty random
Oh, I don't care how random it is. My interest is when is it random. Do you only shuffle the deck when "shuffle" is performed, and then the shuffled order is preserved until: cards are (re-)moved; deck is shuffled again; etc? (I.e "real world" model).
Or do you shuffle the remaining hidden deck multiple times (so, not when shuffle is explicitly performed, but on other occasions, for example; at intervals; or, after someone pics the top card; etc)?
Oh, only when pressing shuffle. In the new version in multiplayer mode the order is kept on server-side so that players can't cheat..
It looks like the randomness is generated at shuffle time and then maintained. You can check by hitting « fan » and then « flip » multiple times. It always returns the same card order between shuffles which seems to imply that it’s maintained.
Very cool! How did you implement multiplayer?
It's using socket.io, pretty simple stuff..
Here's the car.js.org server-side for example, as simple example: https://github.com/pakastin/car-ws/blob/master/server/index....
Bit of a nitpicking but the "sort" order is wrong.
New decks come ordered Ace of Spades - King of Spades, Ace of Diamonds - King of Diamonds, King of Clubs - Ace of Clubs, King of Hearts - Ace of Hearts. The deck should start and end with Aces, and have two kings next to each other in the middle.
That is true, i could actually finally fix that..
Any idea why this is the order?
No idea, but it seems like it's intentionally made so that no matter the orientation of the deck (face up or face down), the first card you see (not counting jokers and ad cards) will always de an ace. The two suits of those aces are just the two most liked suits (ace and hearths).
The curious part is that this order doesn't mean anything for card players, in fact it would probably be better for most games if the decks where printed in random order, but for magicians this order is really important for many effects. For example, if you perfectly shuffle the deck 8 times it will go back to it's original order.
Old one has nicer animation treats, but the new one has multiplayer as well :)