Exemplo n.º 1
0
def main():
    #with open("test.txt","w") as target:
    #print(file=target)
    #with open("checkdiagonal.txt","w") as target:
    #print(file=target)
    with open("tables/config.txt") as target:
        file = "tables/" + target.readline().strip()
    play = Hitori(file)
    gui_play(play)
def main():
    game = Matrice(4, 4, 1, 50)
    gui_play(game)
Exemplo n.º 3
0
def main():
    game = LightsOut()
    gui_play(game)
Exemplo n.º 4
0
def main():
    game = Fifteen(3, 3)
    gui_play(game)
Exemplo n.º 5
0
def main():
    n = int(input("Dimensione matrice (6,8,10,12,14)?"))
    game = Three(n, n)
    gui_play(game)
Exemplo n.º 6
0
def main():
    locked = []
    n = int(input("Dimensione matrice (6,8,10,12,14)?"))
    lockedcells(locked, n)
    game = Three(n, n, locked)
    gui_play(game)
Exemplo n.º 7
0
#!/usr/bin/env python3
'''
@author  Michele Tomaiuolo - http://www.ce.unipr.it/people/tomamic
@license This software is free - http://www.gnu.org/licenses/gpl.html
'''

import cppyy
##cppyy.include("lightsout.cpp")
cppyy.include("fifteen.cpp")
from cppyy.gbl import Fifteen

import sys
sys.path.append('../examples/')
from boardgamegui import gui_play

##game = LightsOut(5, 5, 4)
game = Fifteen(3, 3)
gui_play(game)
def main():
    game = Greatest(6,6, 10, 99)
    gui_play(game)