|
|
|
@ -107,7 +107,7 @@ class BalanceBoardPlayer(object):
@@ -107,7 +107,7 @@ class BalanceBoardPlayer(object):
|
|
|
|
|
bal += MAX_AMPLITUDE |
|
|
|
|
pos = int((bal / (2 * MAX_AMPLITUDE)) * self.__playground.height) |
|
|
|
|
|
|
|
|
|
print("player %d pos=%d" % self.__balance_util.player_id, pos) |
|
|
|
|
print("player %d pos=%d" % (self.__balance_util.player_id, pos)) |
|
|
|
|
|
|
|
|
|
if self.__ownPaddle.ypos > pos: |
|
|
|
|
self.__ownPaddle.nextMoveUp() |
|
|
|
|