Skip to content

Commit 64271a3

Browse files
committed
Cleaned up various non-ASCII character '\xe2' within some comments.
1 parent 8f51296 commit 64271a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

soccer-master/soccer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ def allow_movement(x, y):
420420
# This is called when a computer-controlled player with the ball is working out which direction to run in, or whether
421421
# to pass the ball to another player, or kick it into the goal.
422422
# Several things make up the final score:
423-
# - the distance to our own goal further away is better
424-
# - the proximity of players on the other team we want to get the ball away from them as much as possible
425-
# - a quadratic equation (dont panic too much!) causing the player to favour the centre of the pitch and their opponents goal
423+
# - the distance to our own goal - further away is better
424+
# - the proximity of players on the other team - we want to get the ball away from them as much as possible
425+
# - a quadratic equation (don't panic too much!) causing the player to favour the centre of the pitch and their opponents goal
426426
# - an optional handicap value which can bias the result towards or away from a particular position
427427
def cost(pos, team, handicap=0):
428428
# Get pos of our own goal. We do it this way rather than getting the pos of the actual goal object
@@ -603,7 +603,7 @@ def update(self):
603603
else:
604604
# No-one has the ball
605605

606-
# If were pre-kickoff and Im the kickoff player, OR if were not pre-kickoff and Im active
606+
# If we're pre-kickoff and I'm the kickoff player, OR if we're not pre-kickoff and I'm active
607607
if (pre_kickoff and i_am_kickoff_player) or (not pre_kickoff and self.active()):
608608
# Try to intercept the ball
609609
# Deciding where to go to achieve this is harder than you might think. You can't target the ball's
@@ -748,7 +748,7 @@ def reset(self):
748748
# If team 1 just scored (or if it's the start of the game), team 0 will kick off
749749
other_team = 1 if self.scoring_team == 0 else 0
750750

751-
# Players are stored in the players list in an alternating fashion the first player being on team 0, the
751+
# Players are stored in the players list in an alternating fashion - the first player being on team 0, the
752752
# second on team 1, the third on team 0 etc. The player that kicks off will always be the first player of
753753
# the relevant team.
754754
self.kickoff_player = self.players[other_team]

0 commit comments

Comments
 (0)