#!/usr/bin/env python import rps import random last = random.randrange(3) for turn in xrange(rps.turns): last = rps.play(rps.beat(last))