diff --git a/main.py b/main.py index 1f9439a..795c0b0 100644 --- a/main.py +++ b/main.py @@ -1,14 +1,15 @@ #/usr/bin/env python3 +height=7 +width=33 + 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) +def makeGrid(): + return [[GridSquare(0, 0) for x in range(0,height)] for y in range(0,width)] class Passenger: #dest and curr are both 2-tuples @@ -19,6 +20,8 @@ class Passenger: def GenPassList(): return [] +grid=makeGrid() + passengers = GenPassList() print(grid)