Demo You can check a wasm compiled version here. Instructions press space to start or reset use arrow keys to move and rotate the piece