Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dkogler committed Jul 22, 2024
2 parents 1a812f4 + fd00789 commit edaac99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ You won't want to change that, but you'll need to use conditionals to set the va

> **HINT 1:** You need to make sure that the apple doesn't appear on _any_ piece of your snake. How did you check for collisions between the head and the body? A similar approach would be fitting here, but with two differences.
>
> 1. You should be comparing the `apple` to the snake pieces instead of the head.
> 1. You should be comparing the `randomPosition` to the snake pieces instead of the head.
> 2. This check _should_ check the entire snake and not ignore the head.
> **HINT 2:** If the first hint wasn't enough, you need to use iteration _within_ the `while` loop. You are more than allowed to put a `for` loop inside of a `while` loop if you want to, and you can put a conditional statement inside of that as well if needed.
Expand Down

0 comments on commit edaac99

Please # to comment.