Freezing
In this lesson, we will explore how to handle the pieces on the board after they have landed.
We'll cover the following
When the piece can’t move down anymore, we want to freeze the piece in its final position before we spawn a new tetromino.
Drop or freeze
Let’s start by defining a freeze()
method to merge the tetromino blocks to the board:
Get hands-on with 1400+ tech skills courses.