Skip to content
New issue

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

game #425

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

game #425

wants to merge 2 commits into from

Conversation

diana-tuz
Copy link

Copy link

@polosanya polosanya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! Let's improve your code a bit!

randomCellFill();
};

function isMergePossible() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You used arrow functions above and function declaration here.
Stay strict to one way of creating functions for concise and readable code

src/index.html Outdated
Comment on lines 65 to 67
</body>

</html>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</body>
</html>
</body>
</html>

Don't leave empty lines between parent and child elements

Comment on lines +145 to +147
case 'ArrowLeft':
arrowLeft();
break;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch...case should always have a default case to handle possible errors


function rotateCells(line) {
for (let i = 3; i > 0; i--) {
const moveAllowed = clearCells.includes(line[i])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const moveAllowed = clearCells.includes(line[i])
const isMoveAllowed = clearCells.includes(line[i])

image

@diana-tuz diana-tuz requested a review from polosanya July 31, 2023 09:08
Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants