botm1.1

Authorputiferio
Submission date2018-12-18 19:47:02.317166
Rating5838
Matches played221
Win rate57.92

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

Source code:

a1 = 3
a2 = 69
b1 = 49
b2 = 41
c1 = 10
c2 = 53
d = 10
import random
mosse="RPS"
indice={"R":0,"P":1,"S":2}

if not input:
        output =mosse[random.randint(0,2)]
else:
        i=indice[input]
        j=(indice[output]+3-i)%3
        if j==0:
                x1=a1
                x2=a2
        if j==1:
                x1=b1
                x2=b2
        if j==2:
                x1=c1
                x2=c2
        r=random.randint(1,96)
        if r<x1+1:
                k=0
        else:
                if r<x1+x2+1:
                        k=1
                else: k=2
        output=mosse[(i+k+3)%3]
        
if random.randint(1,d)>1: 
        output=mosse[random.randint(0,2)]