In this lesson, you will discover how Tetris pieces are represented by a class and how to draw them on a Canvas.

A piece in Tetris is a shape consisting of four blocks moving as a unit. They are often called tetrominoes and come in seven different patterns and colors. The names I, J, L, O, S, T, and Z resemble their shape.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy