Build a Player Interface - Build a Player Interface - step 11

Tell us what’s happening:

I have no idea what is going with step 11 as I tried, looked over , research, check other people’s work similar to my own and still failing. I just want clarification of what am I doing wrong, it would be very appreciative to get a little insight to what I am suppose to do. please and thank you.

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) -> tuple:
        random_move = random.choice(self.moves)
        self.position = (
            self.position[0] + random_move[0], self.position[1] + random_move[1]

        )
        self.position = new_position
        
        self.path.append(self.position)
        return self.position
        pass
        
        

        

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

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 @brandoncoder22,

You’ll need to complete the code on this one to accurately test since the Pawn class populates self_moves used in the Player class make_moves method.

Your code so far looks good with one exception:

Where do you define new_position…and do you need to?

Happy coding