def __eq__(self, other):
return other != None and self.x == other.y and self.x == other.y
def __add__(self, other):
def __eq__(self, other):
return other != None and self.x == other.y and self.x == other.y
def __add__(self, other):
def __sub__(self, other):
return coord(self.x-other.x, self.y-other.y)
def __mul__(self, other):
def __sub__(self, other):
return coord(self.x-other.x, self.y-other.y)
def __mul__(self, other):
def welcoming(iq):
"Would this quadrant welcome another Klingon?"
return VALID_QUADRANT(iq.x,iq.y) and \
def welcoming(iq):
"Would this quadrant welcome another Klingon?"
return VALID_QUADRANT(iq.x,iq.y) and \
def tryexit(enemy, look, irun):
"A bad guy attempts to bug out."
iq = coord()
def tryexit(enemy, look, irun):
"A bad guy attempts to bug out."
iq = coord()