Turns the snake's head to the right, preventing it from reversing.
(self)
| 67 | self.head.setheading(LEFT) |
| 68 | |
| 69 | def right(self): |
| 70 | """Turns the snake's head to the right, preventing it from reversing.""" |
| 71 | if self.head.heading() != LEFT: |
| 72 | self.head.setheading(RIGHT) |
| 73 |
no outgoing calls
no test coverage detected