You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
484 B
24 lines
484 B
#/usr/bin/env python3
|
|
|
|
class GridSquare:
|
|
def __init__(self, typ, occupant):
|
|
self.typ = typ
|
|
self.occupant = occupant
|
|
|
|
def makeGrid(height, width):
|
|
return [[GridSquare(0, 0) for x in range(0,width)] for y in range(0,height)]
|
|
|
|
grid=makeGrid(7,33)
|
|
|
|
class Passenger:
|
|
#dest and curr are both 2-tuples
|
|
def __init__(self, dest, curr):
|
|
self.dest = dest
|
|
self.curr = curr
|
|
|
|
def GenPassList():
|
|
return []
|
|
|
|
passengers = GenPassList()
|
|
|
|
print(grid)
|
|
|