lectri / Snake

A simple snake game made using Python. To practice my programming skill.
1 stars 0 forks source link

Snake Runs Into Itself #9

Closed lectri closed 3 years ago

lectri commented 3 years ago

Snake should not be able to run itself. This can be fixed by restricting movement.

lectri commented 3 years ago

There are two issues in this one general issue:

  1. If you are moving left, you cannot move right, or if you are moving up, you cannot move down etc.
  2. If you run into a body part of yours when you are moving it should count as a death and send you to the death screen.

I'll work on the 1st issue then the second.

lectri commented 3 years ago

First issue fixed, it is not online yet.

lectri commented 3 years ago

Second issue fixed, harder than I thought, but it works.