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 #/usr/bin/env python3
height=7
width=33
class GridSquare: class GridSquare:
def __init__(self, typ, occupant): def __init__(self, typ, occupant):
self.typ = typ self.typ = typ
self.occupant = occupant self.occupant = occupant
def makeGrid(height, width): def makeGrid():
return [[GridSquare(0, 0) for x in range(0,width)] for y in range(0,height)] return [[GridSquare(0, 0) for x in range(0,height)] for y in range(0,width)]
grid=makeGrid(7,33)
class Passenger: class Passenger:
#dest and curr are both 2-tuples #dest and curr are both 2-tuples
@ -19,6 +20,8 @@ class Passenger:
def GenPassList(): def GenPassList():
return [] return []
grid=makeGrid()
passengers = GenPassList() passengers = GenPassList()
print(grid) print(grid)

Loading…
Cancel
Save