CS351, Programming III: C++
Spring 2013
Project #2

Event Handling

Due: Feb. 25 by 11:59 pm

 

Write a C++ application called NewTetris that allows a new way to play Tetris. It is well known that in Tetris there are seven kinds of tetriminos, each of which is made up of  four minos. The application window is divided into three bands: top, middle and bottom. When the application starts, seven different tetriminos will appear within the top band, as shown in the Java applet below. These seven tetrinimos are referred to as model tetriminos. A user can add tetriminos into the middle band to create a meaningful shape. A tetrimino that is no longer useful can be deleted by putting it into the bottom band.

 

Specifically, a user can perform the following four operations to create a meaningful shape in the middle band.

The following Java applet is an implementation of NewTetris. Please try the applet to see how the application works.

 

 

Requirements/Recommendations: