Ejemplo n.º 1
0
 def toggle_chessmod(self, but):
     if self.chessmod.get_active():  # activated
         game.rules.chessmod = True
     else:  # deactivated
         game.rules.chessmod = False
     surface.set_chessmod(game.rules.chessmod)
     return
Ejemplo n.º 2
0
    start_window.optwindow.hide()
    start_window.joinwindow.hide()
    start_window.hide()
    surface.set_visi(True)
    # todo: network stuff
    # send msg to clients that the game has started
    # send playernames to the server and otherway round
    # send rules of the game

    surface.pre_render(game.players)
    game.newgame()
    surface.set_msg(game.memo.get_plstr() + "\nstarts the game")


game.rules = game.rule()
game.memo = game.memory()

surface.board = surface.brett()
# these values are some starting values for the startmenu
bigui = False
jumbs = True
cheese = False
surface.set_chessmod(cheese)
surface.set_size(bigui)
# surface.board.set_imgs()#done in set_size()

start_window = start_win()
start_window.show_all()
gtk.main()