delayed_copycat

Authorjchen
Submission date2011-06-15 20:27:48.004302
Rating2240
Matches played5204
Win rate17.66

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

Source code:

import random
history = ["R", "P", "S"]
call_sign = ["R", "P", "S"]
if input == "": # initialize variables for the first round
	output = random.choice(call_sign)
else:
        history.append(input)
        output = history[0]
        history = history.pop(0)