test0003

Authortesting
Submission date2011-06-09 05:29:50.392306
Rating5196
Matches played5250
Win rate49.43

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

Source code:

import random

if input == "":
    wins = 0
    loss = 0
    
    myprev = ""
    enemyp = ""

    phit = 0
    shit = 0
    rhit = 0

    rbias = 33
    pbias = 33
    sbias = 34



if input == "R":
    rhit = rhit+1
if input == "P":
    phit = phit+1
if input == "S":
    shit = shit+1

roll = random.randint(0,100)

if roll < rbias:
    output = "S"
elif roll < rbias + pbias:
    output = "R"
else:
    output = "P"