Compare commits

...

2 Commits

Author SHA1 Message Date
iamsosmart19 1e364f4342 merged 3 years ago
iamsosmart19 27d942387f the Chris Commit 3 years ago
  1. 9
      main.py

9
main.py

@ -5,6 +5,9 @@ class SquareType(Enum):
SEAT = 1
height=7
width=33
class GridSquare:
def __init__(self, typ, occupant):
self.typ = typ
@ -12,11 +15,9 @@ class GridSquare:
def __str__(self):
return "(%s|%s)" % (str(typ), str(occupant))
def makeGrid(height, width):
def makeGrid():
return [[GridSquare(SquareType.AISLE, 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):
@ -36,6 +37,8 @@ def nextSquare(passenger, grid):
def GenPassList():
return []
grid=makeGrid()
passengers = GenPassList()
def tick():

Loading…
Cancel
Save