lectri / Snake

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

Snake Chain Optimization? #16

Closed lectri closed 3 years ago

lectri commented 3 years ago

We perhaps can use this to optimize snake movement. Instead of iterating through each snake body part in a list we can update all of them at the same time. Maybe though.

lectri commented 3 years ago

Also, the way I wrote the algorithm is clunky and kind of unreadable. Use a list comprehension or something of that sort.

lectri commented 3 years ago

Can't implement this. One: This is meant for sprite instances, not shapes. Two: We would still have to change everything one at a time.