Skip to content
Andrew F edited this page Jul 9, 2015 · 10 revisions

See below for an example Run Simulations page, parts which you can customize are Bolded, with options in italics

from wrapper import GameDynamicsWrapper, VariedGame

from dynamics.wright_fisher import WrightFisher

from games.humbly_signaling import Costly_Signaling

import unittest

class TestCase(unittest.TestCase):
    def setUp(self):
        import logging
        logging.basicConfig(filename='debug.log', level=logging.DEBUG) 

    def test_single_simulation(self):#Runs the program and outputs time plot
        s = GameDynamicsWrapper(Costly_Signaling, WrightFisher)
        s.simulate(num_gens=50, graph=dict(NAME=True))

if __name__ == '__main__':
    unittest.main()
Clone this wiki locally