4 ms·
I love the table color and look of the cards here. Also the animations are really cool! I sort of get the feeling this would be a great side-quest in an isometr
by graderjs 4y ago
I love the table color and look of the cards here. Also the animations are really cool! I sort of get the feeling this would be a great side-quest in an isometric RPG / world explorer!
Without looking at the code...can I ask you a question? Is the "randomness" "real like a real deck" -- as in, "after shuffle the cards have a certain definite order, which then is unchanged as you select from the deck?" or is the randomness more like a "computerized version", as in, "shuffle is just for show, selecting from the deck just randomly picks 1 out of the set of remaining cards and subtracts that card, in other words-- these is no persistent order?"
- pkstn 4y agoIt's fisher-yates with multiple iterations, so should be pretty random
- graderjs 4y agoOh, 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)?
- pkstn 4y agoOh, only when pressing shuffle. In the new version in multiplayer mode the order is kept on server-side so that players can't cheat..
- globuous 4y agoIt 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.