botm1.2

Authorputiferio
Submission date2018-12-19 19:01:58.342918
Rating5309
Matches played262
Win rate54.58

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

Source code:

a1 = 49
a2 = 44
b1 = 68
b2 = 14
c1 = 24
c2 = 54
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)]