Esempio n. 1
0
    def play(weighted_powers):
        t = Track()  # Make a new Track.
        t.reset()

        new_horses = GameSimulator.make_horses(weighted_powers)

        # Add 5 horses to it
        for h in new_horses:
            t.add_horse(h)  # Add to the track

        # Run the race and return results.
        return t.run_race()