From 6da1b8cf138c16e81615087a73aa6733ea415f19 Mon Sep 17 00:00:00 2001 From: informaniac Date: Fri, 1 Dec 2017 17:38:08 +0100 Subject: [PATCH] BalanceBoardPlayer now needs a balance_util instead of the wiimote_socket and player_id also renamed ownPaddle to own_paddle to make it PEP8 compatible --- games/balancep0ng.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/games/balancep0ng.py b/games/balancep0ng.py index 700eb79..08bc553 100755 --- a/games/balancep0ng.py +++ b/games/balancep0ng.py @@ -74,15 +74,13 @@ def convertPixels(dimension, pixels, invert=False): return p class BalanceBoardPlayer(object): - def __init__(self, playground, ownPaddle, wiimote_sock, player_id): + def __init__(self, playground, own_paddle, balance_util): self.__playground = playground - self.__ownPaddle = ownPaddle - self.__wiimote = wiimote_sock + self.__ownPaddle = own_paddle self.__ready = False self.__playground.addGameTickCallback(self.gametickcb) - self.__wiimote_sock = wiimote_sock - self.__player_id = player_id + self.__balance_util = balance_util @property def ownPaddle(self):