%title, %site_name

How to make a Game like Rewriting Tetris to 2-Player

Rewriting Tetris to 2-Player In this episode we will refactor the Tetris game written earlier to make it support more than one concurrent player. This also intends to prepare our Tetris code for multi player over internet. We will learn how to * Decontaminate global scope. * Making a class pattern from function pattern. * Generic refactoring good practices. In order to follow this, you should be familiar with simple JavaScript programs or watch the precursor episode Part 1 - Writing a Tetris game in JavaScript https://youtu.be/H2aW5V46khA You can also continue to make…continue reading →