Hacker News new | ask | show | jobs
by muthdra 2856 days ago
A lot of the same pieces falling after one another, sometimes 4 in a row. For deciding which pieces should appear, you should create an array with the 7 unique possibilites for pieces and then shuffle the array and go through all the 7 randomly-ordered pieces before doing the same process again. This guarantees all pieces appear consistently.