Build a Player Interface - Build a Player Interface

Tell us what’s happening:

Hey I am confused by how this isn’t correct for answers 11-13. I have been stuck for a little while so ended up continuing without it but it just want to get this done !!

Your code so far

from abc import ABC, abstractmethod 
import random

class Player(ABC):
    def __init__(self):
        self.moves = []
        self.position = (0, 0)
        self.path = [self.position]

    def make_move(self):
        move = random.choice(self.moves)
        self.position = (
            self.position[0] + move[0], 
            self.position[1] + move[1]
        )
        
        self.path.append(self.position)
        return self.position 


        




Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15

Challenge Information:

Build a Player Interface - Build a Player Interface

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-player-interface/68e2c945cc1d8e778152be31.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @trying1,

To pass the tests for this challenge, you will need to fully implement the user stories since there is a dependency on the Pawn class for the Player make_move method.

Note: Standard library modules should be imported without using aliases. Tests related to the Player class will fail until the Pawn class becomes instantiable.

Happy coding