tit-for-2-tat

Authorhahasee
Submission date2011-06-11 00:43:52.069801
Rating2023
Matches played5272
Win rate20.96

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

Source code:

import random

if input == "":
    last = input
    throw = 0
    output = random.choice(["R","P","S"])
else:
    if throw % 2 == 0:
        throw = 1
        last = input
        output = input
    elif throw % 2 == 1:
        throw = 2