Simple Weighted Random

Authorscoppini
Submission date2015-07-01 03:42:30.294424
Rating6244
Matches played492
Win rate56.5

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

Source code:

import random

if input:
 choices += beats[input]
else:
 beats = {'R': 'P', 'P': 'S', 'S': 'R'}
 choices = 'RPS'
output = random.choice(choices)