Tell us what’s happening:
I need help with challenges 11, 12, 13, 23, 24, and 25. Especially with the making of positions with tuples and the get_move method. Thanks
Your code so far
from abc import ABC, abstractmethod
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)
new_x = self.position[0] + move[0]
new_y = self.position[1] + move[1]
self.position = (new_x, new_y)
self.path.append(self.position)
return self.position
@abstractmethod
def level_up(self):
pass
class Pawn(Player):
def __init__(self):
super().__init__()
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Challenge Information:
Build a Player Interface - Build a Player Interface