Browse Source

the Chris Commit

master
iamsosmart19 3 years ago
parent
commit
27d942387f
  1. 11
      main.py

11
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)

Loading…
Cancel
Save