|
|
@ -91,7 +91,8 @@ class BalanceBoardPlayer(object): |
|
|
|
return true |
|
|
|
return true |
|
|
|
|
|
|
|
|
|
|
|
def gametickcb(self): |
|
|
|
def gametickcb(self): |
|
|
|
bal = self.__balance_util.get_raw_2dir_y() |
|
|
|
# TODO: add CLI option to select axis |
|
|
|
|
|
|
|
bal = self.__balance_util.get_raw_2dir_x() |
|
|
|
|
|
|
|
|
|
|
|
if bal == -128: |
|
|
|
if bal == -128: |
|
|
|
print("player %d has quit" % self.__balance_util.player_id) |
|
|
|
print("player %d has quit" % self.__balance_util.player_id) |
|
|
|