Browse Source

fix crash when left player is bot

balancep0ng-improve-player-joining
Fr3deric 5 years ago
parent
commit
f1bb7a0396
  1. 2
      games/balancep0ng.py

2
games/balancep0ng.py

@ -186,7 +186,7 @@ class B4lancePong(object): @@ -186,7 +186,7 @@ class B4lancePong(object):
while max(scoreLeft, scoreRight) < __MAX_SCORE__:
winner = self.__playground.play()
if winner is self.__players[0].ownPaddle:
if winner is self.__playground.leftPaddle:
scoreLeft += 1
else:
scoreRight += 1

Loading…
Cancel
Save