We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tetris-Basic/app.js
Line 172 in c7e804e
You should be checking currentRotation === theTretrominos[random].length
Instead you are comparing against the number of blocks in a tetromino (current.length).
Luckily there are no out of bounds exceptions because both the number of rotations and the number of blocks in a tetromino are 4.
The text was updated successfully, but these errors were encountered:
I did as you said and it didn't even rotate.
Sorry, something went wrong.
No branches or pull requests
Tetris-Basic/app.js
Line 172 in c7e804e
You should be checking currentRotation === theTretrominos[random].length
Instead you are comparing against the number of blocks in a tetromino (current.length).
Luckily there are no out of bounds exceptions because both the number of rotations and the number of blocks in a tetromino are 4.
The text was updated successfully, but these errors were encountered: