Sure! Here's an example of a Tetris game implemented as a single HTML file using JavaScript and enclosed in script tags:
This implementation includes basic controls for moving the tetromino left, right, and down using the left, right, and down arrow keys respectively. The up arrow key is used to rotate the tetromino. The gameplay loop updates the canvas and checks for valid moves, locking the tetromino when it reaches the bottom.