Browse Source

string for passenger

master
EtherealEntity 3 years ago
parent
commit
9b9cf88aaa
  1. 6
      main.py

6
main.py

@ -1,10 +1,10 @@
#!/usr/bin/env python3
from enum import Enum
class SquareType(Enum):
AISLE = 0
SEAT = 1
height=7
width=33
@ -23,6 +23,8 @@ class Passenger:
def __init__(self, dest, curr):
self.dest = dest
self.curr = curr
def __str__(self):
return "(%s|%s)" % (dest, curr)
def manhattanDistance(pos1, pos2):
return abs(pos1[0] - pos2[0]) + abs(pos1[1] - pos2[1])
@ -44,5 +46,3 @@ passengers = GenPassList()
def tick():
# print grid
print(grid)

Loading…
Cancel
Save