from controller import Controller
import pygame


class HumanController(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        print(distance_next_cp)
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_a]:
            x = -1
        if keys[pygame.K_d]:
            x = 1
        if keys[pygame.K_w]:
            y = -1
        if keys[pygame.K_s]:
            y = 1
        return y, x


class HumanController2(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_LEFT]:
            x = -1
        if keys[pygame.K_RIGHT]:
            x = 1
        if keys[pygame.K_UP]:
            y = -1
        if keys[pygame.K_DOWN]:
            y = 1
        return y, x

afbf74a7d92e85e7f95a68bfc6730b26880492ca
<mask token>


class HumanController(Controller):
    <mask token>
    <mask token>


class HumanController2(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_LEFT]:
            x = -1
        if keys[pygame.K_RIGHT]:
            x = 1
        if keys[pygame.K_UP]:
            y = -1
        if keys[pygame.K_DOWN]:
            y = 1
        return y, x

<mask token>


class HumanController(Controller):
    <mask token>

    def process_response(self, view, distance_next_cp):
        print(distance_next_cp)
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_a]:
            x = -1
        if keys[pygame.K_d]:
            x = 1
        if keys[pygame.K_w]:
            y = -1
        if keys[pygame.K_s]:
            y = 1
        return y, x


class HumanController2(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_LEFT]:
            x = -1
        if keys[pygame.K_RIGHT]:
            x = 1
        if keys[pygame.K_UP]:
            y = -1
        if keys[pygame.K_DOWN]:
            y = 1
        return y, x

<mask token>


class HumanController(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        print(distance_next_cp)
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_a]:
            x = -1
        if keys[pygame.K_d]:
            x = 1
        if keys[pygame.K_w]:
            y = -1
        if keys[pygame.K_s]:
            y = 1
        return y, x


class HumanController2(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_LEFT]:
            x = -1
        if keys[pygame.K_RIGHT]:
            x = 1
        if keys[pygame.K_UP]:
            y = -1
        if keys[pygame.K_DOWN]:
            y = 1
        return y, x

from controller import Controller
import pygame


class HumanController(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        print(distance_next_cp)
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_a]:
            x = -1
        if keys[pygame.K_d]:
            x = 1
        if keys[pygame.K_w]:
            y = -1
        if keys[pygame.K_s]:
            y = 1
        return y, x


class HumanController2(Controller):
    """
    @return
    """

    def process_response(self, view, distance_next_cp):
        keys = pygame.key.get_pressed()
        x, y = 0, 0
        if keys[pygame.K_LEFT]:
            x = -1
        if keys[pygame.K_RIGHT]:
            x = 1
        if keys[pygame.K_UP]:
            y = -1
        if keys[pygame.K_DOWN]:
            y = 1
        return y, x
