The Tkinter verison of Gasp does not import the random module, which the Pygame version of Gasp does do.
In Pygame Gasp:
def random_between(num1, num2):
if num1 == num2:
return num1
elif num1 > num2:
return random.randint(num2, num1)
else:
return random.randint(num1, num2)
This causes the robots game to break, as it cannot call the random_between method for placement of the player and robot characters. The issue is easily resolved by adding an import call to random and adding the above function to the robots file, but this functionality could be added to Tkinter Gasp.
The Tkinter verison of Gasp does not import the random module, which the Pygame version of Gasp does do.
In Pygame Gasp:
```
def random_between(num1, num2):
if num1 == num2:
return num1
elif num1 > num2:
return random.randint(num2, num1)
else:
return random.randint(num1, num2)
```
This causes the robots game to break, as it cannot call the `random_between` method for placement of the player and robot characters. The issue is easily resolved by adding an import call to random and adding the above function to the robots file, but this functionality could be added to Tkinter Gasp.