commit
4dbaeb0dd2
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||
|
#/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) |
Loading…
Reference in new issue