executables.server

 1import random
 2from schnapsen.bots import SchnapsenServer
 3from schnapsen.bots import RandBot
 4from schnapsen.game import SchnapsenGamePlayEngine
 5
 6
 7if __name__ == "__main__":
 8    engine = SchnapsenGamePlayEngine()
 9    with SchnapsenServer() as s:
10        bot1 = RandBot(random.Random(12))
11        # bot1 = s.make_gui_bot(name="mybot1")
12        bot2 = s.make_gui_bot(name="mybot2")
13        engine.play_game(bot1, bot2, random.Random(100))