Turns the snake's head to the left, preventing it from reversing.
(self)
| 62 | self.head.setheading(DOWN) |
| 63 | |
| 64 | def left(self): |
| 65 | """Turns the snake's head to the left, preventing it from reversing.""" |
| 66 | if self.head.heading() != RIGHT: |
| 67 | self.head.setheading(LEFT) |
| 68 | |
| 69 | def right(self): |
| 70 | """Turns the snake's head to the right, preventing it from reversing.""" |
no outgoing calls
no test coverage detected