the Tetris game clone where all the pieces have the same shape and size
a single piece has size of 1/16th screen's width and 1/12th screen height
game board is size of 6 x 12 pieces, is centered, top most and cannot to be moved
the colors:
game board: the color of the dialog window's background
pieces: the color of the active window's titlebar
Functionality:
a piece is moved down one line every 200ms
a piece could be moved using left and right arrow
a piece could be moved using mouse when SHIFT key is down only
a piece moves left if mouse cursor is behind the left piece's edge
a piece moves right if mouse cursor is behind the right piece's edge
a piece is moved (left or right) together with taking it to the next line (at the same moment - as distinct from
keyboard movement which is executed immediately)
a piece cannot intersects with any other static piece
fully filled rows are shift out
the game ends when no new piece can be created
the game could be ended at any time with ESC button
Assumptions (for simplicity) and restrictions:
a new piece can appears always in the same column
there could be no more than 6 * 12 + 1 windows at any time during the program execution
only one window could be visible at the taskbar
game board's window has no border or titlebar
Hints:
GetSystemMetrics()
GetWindowRect(), MoveWindow(), DestroyWindow()
SetTimer()
Approximate points:
game borad's window creation (correct, inluding size and parameters): 1.0
pieces' windows creation and destroying (correct): 2.0