looppp

Authorxyz
Submission date2019-06-08 22:14:33.528956
Rating4187
Matches played240
Win rate41.25

Use rpsrunner.py to play unranked matches on your computer.

Source code:

import random
if input == "R":
	output = "P" 
        if input == "p":
                output = "S"
        elif input == "S":
	        output = "P"
                 
elif input == "P":
	output = "S"
        if input == "R":
                output = "P"
        elif input == "S":
	        output = "R"
elif input == "S":
	output = "P"
        if input == "p":
                output = "S"
        elif input == "S":
	        output = "R"
else:
        output = random.choice(["R","P","S"])