testilus_b014_shotgun

Authortestilus
Submission date2013-05-01 17:37:01.878366
Rating5408
Matches played723
Win rate54.08

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

Source code:

#enhanced shotgun
import random as r

c = [["R","S"],["P","R"],["S","P"],["P","S"],["S","R"],["R","P"]]
if input:
    for i in range(len(t)):
        if [input, t[i]] in c[0:3]:
            s[i] += 1
        elif [input, t[i] in c[3:6]]:
            s[i] -= 1
    t[3] = r.choice(t[0:3])
    if input == "R":
        t[4] = "P"
        t[5] = "S"
    elif input == "P":
        t[4] = "S"
        t[5] = "R"
    else:
        t[4] = "R"
        t[5] = "P"
    b = 0
    for i in range(len(s)):
        if s[i] > s[b]:
            b = i
    output = t[b]
else:
    t = ["R","P","S","S","S","S"]
    s = [0,0,0,0,0,0]
    output = "S"
if output == "S":
    output = "P"
elif output == "P":
    output = "R"
elif output == "R":
    output = "S"