Hi,
Below is a code for the t-rex jumping game. I was following a youtube tutorial on how to make the bot; was using this to learn python. When I click run, it says “Process finished with exit code 0”, but it does nothing. The code was for the bot to automatically restart when it was game over. Please check and see where I am going wrong
from PIL import ImageGrab
import pyautogui
class Cordinates():
replayBtn = (361,364)
def restartGame():
pyautogui.click(Cordinates.replayBtn)
restartGame()