Merge pull request #4 from WillSams/master

Cleaned up various non-ASCII character '\xe2' within some comments.
This commit is contained in:
Andrew Gillett 2021-11-12 13:25:45 +00:00 committed by GitHub
commit 839adfc134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ def allow_movement(x, y):
# Several things make up the final score: # Several things make up the final score:
# - the distance to our own goal - further away is better # - the distance to our own goal - further away is better
# - the proximity of players on the other team - we want to get the ball away from them as much as possible # - the proximity of players on the other team - we want to get the ball away from them as much as possible
# - a quadratic equation (dont panic too much!) causing the player to favour the centre of the pitch and their opponents goal # - a quadratic equation (don't panic too much!) causing the player to favour the centre of the pitch and their opponents goal
# - an optional handicap value which can bias the result towards or away from a particular position # - an optional handicap value which can bias the result towards or away from a particular position
def cost(pos, team, handicap=0): def cost(pos, team, handicap=0):
# Get pos of our own goal. We do it this way rather than getting the pos of the actual goal object # 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 @@ class Player(MyActor):
else: else:
# No-one has the ball # No-one has the ball
# If were pre-kickoff and Im the kickoff player, OR if were not pre-kickoff and Im active # If we're pre-kickoff and I'm the kickoff player, OR if we're not pre-kickoff and I'm active
if (pre_kickoff and i_am_kickoff_player) or (not pre_kickoff and self.active()): if (pre_kickoff and i_am_kickoff_player) or (not pre_kickoff and self.active()):
# Try to intercept the ball # Try to intercept the ball
# Deciding where to go to achieve this is harder than you might think. You can't target the ball's # Deciding where to go to achieve this is harder than you might think. You can't target the ball's