Creates the initial snake body.
(self)
| 17 | self.head = self.segments[0] |
| 18 | |
| 19 | def create_snake(self): |
| 20 | """ Creates the initial snake body. """ |
| 21 | for position in STARTING_POSITIONS: |
| 22 | self.add_segment(position) |
| 23 | self.segments[0].color(colors.FIRST_SEGMENT_COLOR) |
| 24 | |
| 25 | def add_segment(self, position): |
| 26 | """ Adds a new segment to the snake. """ |
no test coverage detected