if True:
[x,y] = p.select() # Player selects a square
if self.stopped():
+ #debug("Quitting in select")
break
if isinstance(p, NetworkPlayer):
else:
result = self.board.select(x, y, colour = p.colour)
- result = p.update(result)
+ result = p.update(result)
+ if self.stopped():
+ break
for p2 in self.players:
- if p2 != p:
- p2.update(result) # Inform players of what happened
+ if p2 == p:
+ continue
+ p2.update(result) # Inform players of what happened
+ if self.stopped():
+ break
+
+ if self.stopped():
+ break
log(result)
self.stop()
if self.stopped():
+ #debug("Quitting in get_move")
break
if isinstance(p, NetworkPlayer):
result = str(x) + " " + str(y) + " -> " + str(x2) + " " + str(y2)
self.board.update_move(x, y, x2, y2)
- result = p.update(result)
+ result = p.update(result)
+ if self.stopped():
+ break
for p2 in self.players:
- if p2 != p:
- p2.update(result) # Inform players of what happened
+ if p2 == p:
+ continue
+ p2.update(result) # Inform players of what happened
+ if self.stopped():
+ break
+
+ if self.stopped():
+ break
+
+
log(result)