コード例 #1
0
ファイル: hitori.py プロジェクト: Kekko01/My-Hitori
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)
コード例 #2
0
def main():
    game = Matrice(4, 4, 1, 50)
    gui_play(game)
コード例 #3
0
def main():
    game = LightsOut()
    gui_play(game)
コード例 #4
0
def main():
    game = Fifteen(3, 3)
    gui_play(game)
コード例 #5
0
def main():
    n = int(input("Dimensione matrice (6,8,10,12,14)?"))
    game = Three(n, n)
    gui_play(game)
コード例 #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)
コード例 #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)
コード例 #8
0
def main():
    game = Greatest(6,6, 10, 99)
    gui_play(game)