Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 396 Bytes

File metadata and controls

16 lines (13 loc) · 396 Bytes

test

class CartState: def init(self, position, velocity, direction): self.position = position self.velocity = velocity self.direction = direction

def move(self):
    # some code to move the cart
    pass

def change_direction(self, new_direction):
    self.direction = new_direction

def get_position(self):
    return self.position