主题:俄罗斯块算法求助(一道公司笔试题,十万火急!!!)
* Spheres come down from the top of the game board in pairs. A player can rotate them on their way down.
* Spheres come in 4 different colors: red, blue, green, and yellow
* Linking four spheres of the same color (horizontally, vertically or both(as in tetris)) removes them from the game board, allowing any sphere remaining to drop and fill the vacated space.
This may lead to several possible "chain combos" if additional colors match.
* The game board can be any size you want (we recommend 6x12)
* Note that the pair of spheres are not linked to each other. If one sphere is blocked because there is something underneath, the other one will continue falling (with no player control over it) until it reaches something.
* Spheres come in 4 different colors: red, blue, green, and yellow
* Linking four spheres of the same color (horizontally, vertically or both(as in tetris)) removes them from the game board, allowing any sphere remaining to drop and fill the vacated space.
This may lead to several possible "chain combos" if additional colors match.
* The game board can be any size you want (we recommend 6x12)
* Note that the pair of spheres are not linked to each other. If one sphere is blocked because there is something underneath, the other one will continue falling (with no player control over it) until it reaches something.