Tetris Reflection

This was an assignment for my PROG 3060 class at NSCC. We had to build a game. I have always liked tetris so I decided to make my own version. We learned how draw to a Windows form using the onPaint event and a Graphics context.

I made a Block class to represent an individual block in any piece, an abstract Piece class and concrete classes to represent each piece in the game (squares, lines, etc.). This structure made the application easy to code. The Piece class holds most of the workings of the piece, such as move, draw, and most properties. The concrete classes just have a constructor and the rotate method. There is a Board class to represent the game area and a Game class that runs the game and controls the objects.

This assignment improved my ability to organize a project. This class structure is easy to navigate, understand, and maintain.

Back