Browse Source

remove debug output, decrease sleep when waiting

master
Fr3deric 5 years ago
parent
commit
08ebd573e3
  1. 3
      games/balancep0ng.py

3
games/balancep0ng.py

@ -145,8 +145,7 @@ class B4lancePong(object):
balance_util_p1 = blup.balance_util.BalanceUtil(sock, 0) balance_util_p1 = blup.balance_util.BalanceUtil(sock, 0)
balance_util_p2 = blup.balance_util.BalanceUtil(sock, 1) balance_util_p2 = blup.balance_util.BalanceUtil(sock, 1)
while not balance_util_p1.get_player_ready(): while not balance_util_p1.get_player_ready():
print('waiting for player...') time.sleep(0.1)
time.sleep(1)
self.__players = [] self.__players = []
self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.leftPaddle, balance_util_p1)) self.__players.append(BalanceBoardPlayer(self.__playground, self.__playground.leftPaddle, balance_util_p1))

Loading…
Cancel
Save