Skip to content

Module #1 (Dhananjoy) - #12

Open
Corei13 wants to merge 1 commit into
recruit-org:module-1from
Corei13:module-1
Open

Module #1 (Dhananjoy)#12
Corei13 wants to merge 1 commit into
recruit-org:module-1from
Corei13:module-1

Conversation

@Corei13

@Corei13 Corei13 commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pages/index.js
// remove tail
newSnake.pop();
// increase snake size after eating food
if (isFood(newHead)) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a bug, this should be !isFood(newHead)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

just an exclamation mark! ah

Comment thread pages/index.js

// remove tail
newSnake.pop();
// increase snake size after eating food

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

change it to decrease snake size

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