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

Increase snake's speed as its length increases #6

Open
carissaallen opened this issue Jul 28, 2019 · 0 comments
Open

Increase snake's speed as its length increases #6

carissaallen opened this issue Jul 28, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@carissaallen
Copy link
Collaborator

Overview

The snake's length increases with each apple it eats. So, as the player successfully eats more apples, it'd be neat if the game got a little more difficult by increasing the snake's baseline speed.

Acceptance Criteria

  • The snake's speed increases at reasonable increments as it's length increases
  • There is an upper bound on speed so the snake is never uncontrollably fast
  • There is a lower bound on speed so the snake is never frustratingly slow
  • Unit tests are written to cover the new code/methods added

Suggestion

Try looking at the window.timeout() functionality in curses. This may not be relevant to the final solution, but this method is what currently controls the delay in milliseconds that establishes the snake's speed.

@carissaallen carissaallen added enhancement New feature or request good first issue Good for newcomers labels Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant