Пример #1
0
def exemple_sauvegarde():
    battle=SoccerBattle(teams[0],teams[1])
    obs=PygletObserver()
    obs.set_soccer_battle(battle)
    ## False si on ne veut pas cumuler les sauvegardes dans un meme fichier, True sinon
    log=LogObserver("replay1.pkl",False)
    log.set_soccer_battle(battle)
    pyglet.app.run()
    return battle
Пример #2
0
# -*- coding: utf-8 -*-



from soccersimulator import pyglet
from soccersimulator import PygletObserver
from soccersimulator import SoccerBattle
from monequipe import teams
import pickle

team1=teams[1]
team2=teams[0]

battle= SoccerBattle(team2,team1)
obs=PygletObserver()
obs.set_soccer_battle(battle)
pyglet.app.run()
Пример #3
0
def exemple_simple(cst=CFG_1):
    battle=SoccerBattle(teams[0],teams[1],cst=cst)
    obs = PygletObserver()
    obs.set_soccer_battle(battle)
    pyglet.app.run()
Пример #4
0
def exemple_interact():
    battle=SoccerBattle(teams[0],teams[2])
    obs = PygletObserver()
    obs.set_soccer_battle(battle)
    pyglet.app.run()
    return battle
Пример #5
0
def exemple_tree():
    battle=SoccerBattle(teams[0],teams[3])
    obs = PygletObserver()
    obs.set_soccer_battle(battle)
    pyglet.app.run()