From 038f33df2cb407d405b56dcb6ee7646c69185ea3 Mon Sep 17 00:00:00 2001 From: informaniac Date: Fri, 1 Dec 2017 17:41:49 +0100 Subject: [PATCH] create BalanceBoardPlayer(s) with the respective balance_utils --- games/balancep0ng.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/balancep0ng.py b/games/balancep0ng.py index 01fd59f..6b50e5e 100755 --- a/games/balancep0ng.py +++ b/games/balancep0ng.py @@ -149,10 +149,10 @@ class B4lancePong(object): time.sleep(1) self.__players = [] - self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.leftPaddle, sock, 0)) + self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.leftPaddle, balance_util_p1)) if self.__numplayers == 2: - self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.rightPaddle, sock, 1)) + self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.rightPaddle, balance_util_p2)) elif self.__numplayers is None: for i in range(5): frame = mk_logo_frame(self.__dimension, onePlayer)