Tell us what’s happening:
can someone help me with this…
my code:
Your code so far
from abc import ABC, abstractmethod
# from random import choice
import random
class Player(ABC):
def __init__(self):
self.moves = []
self.position = (0, 0)
self.path = [self.position]
def make_move(self):
dx, dy = random.choice(self.moves)
self.position=(self.position[0] + dx, self.position[1] + dy)
self.path.append(self.position)
return self.position
Lesson URL (copy - paste from your browser’s address bar)