Game Development: Tetris in Angular

added by JavaScript Kicks
9/30/2019 7:22:41 AM

794 Views

The board in Tetris consists of cells, which are either occupied or not. My first thought was to represent a cell with boolean values. But, we can do better by using numbers. We can represent an empty cell with 0, and the colors with numbers 1-7.


0 comments