3r3-31. Recently I had an idea - to write a simple game in the minimum number of lines. My choice fell on Tetris. In this article I will describe my code.
To begin with, it is worth noting that in my implementation I included only the basic features: 3r3333368.
movement of figures left /right;
the fall of the figures;
deleting filled figures;
ending the game.
So, first add a PictureBox to the form and create a timer.
Also, the game will need:
public const int width = 1? height = 2? k = 15; //Size of the field and size of the cell in pixels