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

feat: make snake wiggle #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: make snake wiggle #99

wants to merge 1 commit into from

Conversation

vkbinfo
Copy link
Contributor

@vkbinfo vkbinfo commented Mar 8, 2019

No description provided.

@vercel
Copy link

vercel bot commented Mar 8, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

if (this.direction === 'left' || this.direction === 'right') {
this.head.y = this.head.y + this.tild;
}
if (this.direction === 'up' || this.direction === 'down') {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

}

makeItWiggle() {
if (this.direction === 'left' || this.direction === 'right') {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

}
}

makeItWiggle() {
Copy link

Choose a reason for hiding this comment

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

Function makeItWiggle has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Mar 8, 2019

Code Climate has analyzed commit 63f051c and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2

View more on Code Climate.

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