I create a game in python. i am looking to make it in a constant loop until user decide to cancel

Hey guys I create a rock paper scissor game using python and i would like to loop it after game ends. please, what shall I add to my code?

here is my code Replit, thanks

https://replit.com/join/ansgpehgvc-anasmizhar

I have not seen your code as don’t have an account on that platform.

But you could try a simple while true loop, within try & except:

try:
While True:

             Your code 

except as Exception as e:
Print(‘The game has crashed for the reason below’)
Print(e)

Need to indent correctly though & have an exit method within your code :wink:

i haven’t resolved it yet actually

thanks i don’t know how to impliment that yet

i want to give it three times chances, winner must win 3 times at least

unlimited tries until one user wins either person or computer. thank you