tit-for-tat-with-random

Authorhahasee
Submission date2011-06-11 01:04:17.780904
Rating2523
Matches played5362
Win rate26.86

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

Source code:

import random
if input == "":
    count = 0
    output = random.choice(["R","P","S"])
else:
    if count % 5 == 0:
        output = random.choice(["R","P","S"])
        count = 0
    count = count + 1
    output = input