Skip to content

Update snake.js#1

Open
acagastya wants to merge 1 commit intoCodingrainbow:masterfrom
acagastya:patch-1
Open

Update snake.js#1
acagastya wants to merge 1 commit intoCodingrainbow:masterfrom
acagastya:patch-1

Conversation

@acagastya
Copy link

updated dir function so that left arrow won't move the snake in left direction and kill it while it is moving in the right direction and vice-versa.

updated dir function so that left arrow won't move the snake in left direction and kill it while it is moving in the right direction and vice-versa.
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.

1 participant