- 论坛徽章:
- 0
|
The shape of the tetris is highly Customization, some of the shape are hard to fill up , this is the challenge and pleasure!
If you want to play the game more easily, just change the range of the ID of the boxes in a continuous range: from box0 to boxUPLIMIT, and change the value of of the num in $((RANDOM/num)), while num is the smallest number that can guarantee the value of $((RANDOM/num)) isn't greater than UPLIMIT when RANDOM is 32767! For instance, the current id of the boxes is from box0 to box27, and 1171 is the smallest number that can guarantee: 0 ≤ $((RANDOM/1171)) ≤ 27, as 32767/1171=27, and 32767/1170=28! |
|