players.py
def reverse_direction(self) -> None:
        """ Update the direction so that <self> will move in the opposite
        direction.

        >>> player = Player('p0', 3, 1, 'Game (a valid game class)',\
        'purple', (50, 100))
        >>> player.__setattr__('_direction', 'N')
        >>> player.reverse_direction()
        >>> player.__getattribute__('_direction') == 'S'
        True
        """
        if self._direction == 'N':
            self._direction = 'S'
        elif self._direction == 'S':
            self._direction = 'N'
        elif self._direction == 'E':
            self._direction = 'W'
        else:
            self._direction = 'E'
 Update the direction so that <self> will move in the opposite
        direction.

        >>> player = Player('p0', 3, 1, 'Game (a valid game class)',\
        'purple', (50, 100))
        >>> player.__setattr__('_direction', 'N')
        >>> player.reverse_direction()
        >>> player.__getattribute__('_direction') == 'S'
        True
        
Update the direction so that  will move in the opposite
direction.


Update the direction so that will move in the opposite direction .
def reverse_direction(self) -> None:
        if self._direction == 'N':
            self._direction = 'S'
        elif self._direction == 'S':
            self._direction = 'N'
        elif self._direction == 'E':
            self._direction = 'W'
        else:
            self._direction = 'E'
def reverse_direction ( self ) -> None : if self . _direction == 'N' : self . _direction = 'S' elif self . _direction == 'S' : self . _direction = 'N' elif self . _direction == 'E' : self . _direction = 'W' else : self . _direction = 'E'
Update the direction so that <self> will move in the opposite
direction.
Update the direction so that <self > will move in the opposite direction .
""" Update the direction so that <self> will move in the opposite
        direction.

        >>> player = Player('p0', 3, 1, 'Game (a valid game class)',\
        'purple', (50, 100))
        >>> player.__setattr__('_direction', 'N')
        >>> player.reverse_direction()
        >>> player.__getattribute__('_direction') == 'S'
        True
        """
self