Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell committed Aug 30, 2021
1 parent 584ed96 commit 97eb4ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions function.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def action_attack(attaque, player_att, player_def, backend_sim):
player_def.action = 0


def control_input(options, input):
if input is not None:
if 0 <= input < options:
def control_input(options, input_ctl):
if input_ctl is not None:
if 0 <= input_ctl < options:
return True
print("Please give a number between 0 and {}.".format(options-1))
return False
Expand Down

0 comments on commit 97eb4ea

Please sign in to comment.