有一题目 希望能解决,望给给出源代码
要求:
Rules of Game: 
---------------* 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. 
 
 To Submit: 
------------Please submit a java or C/C++ console application that will open a window and start the game.
You may attach a separate text file that documents player controls and any other comments (as gameplay improvements, bugs not corrected, any comment that will help evaluate your submission...) 
important:
- use Eclipse or Visual C++ as your IDE if you need one, DO NONT use JBuilder or C++ Builder
- java or C/C++ console application MUST be available
- it will be better to attach your project files and source code files
- ALL COMMENTS IN ENGLISH