Skip to content

snake-1 bug fix#3

Open
Dibakor20 wants to merge 4 commits intorecruit-org:mainfrom
Dibakor20:snake-1
Open

snake-1 bug fix#3
Dibakor20 wants to merge 4 commits intorecruit-org:mainfrom
Dibakor20:snake-1

Conversation

@Dibakor20
Copy link
Copy Markdown

snake-1 updated

pages/index.js Outdated

setTimeout(() => {
reStartGame();
setEndGame(false);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you can move setEndGame and setScore to reStartGame function as these 2 functions are also a part of restarting the game

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

ok

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.

2 participants