Persistent Random

Authorvladh
Submission date2011-05-25 22:45:13.313046
Rating2298
Matches played7617
Win rate19.9

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

Source code:

# picks a move and plays it multiple times
import random;

def numToMove(num):
	if num==0: return "R";
	if num==1: return "P";
	if num==2: return "S";
	return None;
if input=="":
	do=["R",0];

if do[1]==0:
	print "bla";
	do[0]=numToMove(random.randrange(0,2));
	do[1]=random.randrange(3,8);

do[1]-=1;
output=do[0];