Beating Random

AuthorCarsten Drossel
Submission date2011-06-20 06:39:51.627344
Rating4997
Matches played4977
Win rate48.14

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

Source code:

import random

tobeat = random.choice(["R","P","S"])
if tobeat == "R":
  output = "P"
elif tobeat == "P":
  output = "S"
elif tobeat == "S":
  output = "R"