News for hackers. Stuff that matters.
Re:HTML5 Deck of Cards by gcb0 on Thursday September 03, 2015 @06:43PM (#10167930)
on my deck hacks i use proper data structures but on the initializer for the deck i have `suit = i % 4`.

which has the advantage of working with any size of deck. important since in brazillian truco you leave most of the numbers out ;)

There are no comments on this comment yet.