the begginnings of a game theory engine — axelrod’s tournament 2.0

Heres some work I threw together last night in preparation for doing an ICP in Computational Economics, I threw together a quick python script for having strategy bots wage repeated battle over programmable games.  It sounds a lot more interesting than it really is.

Example Game:
def prisoners():
"""
Prisoners Dilemma with delta = 0.95
"""
payoffs['discount'] = 0.95
payoffs['1, 1'] = (2,2)
payoffs['1, 0'] = (0,3)
payoffs['0, 1'] = (3,0)
payoffs['0, 0'] = (1,1)
return payoffs

Output from my game theory prisoner's dilemma script.

The Beggining of Axelrod's Tournament 2.0

Code (under the, do whatever the expletive you want with it license):http://paste.pocoo.org/show/266272/

"""
Prisoners Dilemma with delta = 0.95
"""
def prisoners():
    payoffs['discount'] = 0.95
    payoffs['1, 1'] = (2,2)
    payoffs['1, 0'] = (0,3)
    payoffs['0, 1'] = (3,0)
    payoffs['0, 0'] = (1,1)
    return payoffs