botm1.3

Authorputiferio
Submission date2019-01-07 08:51:00.678839
Rating6365
Matches played260
Win rate64.62

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)]