Based on the tutorial by Ania Kubow for FreeCodeCamp. This is a javascript tetris game. I compartmentalised some of the repeated code into separate functions. For example, I made a function that ...
Storing the board The primary item of interest in Tetris is the game board. The board consists of 200 tiles arranged in 20 rows of 10 columns. Our first decision when building the game will be how we ...