TitForTat_v1

AuthorPaul
Submission date2013-10-02 09:08:04.752661
Rating5091
Matches played646
Win rate47.99

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

Source code:

import random
if input:
    output = {'R' : 'P',
              'P' : 'S',
              'S' : 'R'}[last]
    last = input
else:
    output = random.choice(["R","P","S"])
    last = random.choice(["R","P","S"])