コード例 #1
0
ファイル: run.py プロジェクト: kardelen-karatas/HungryOctopus
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("pattern",
                        nargs='?',
                        default='pattern_file',
                        help="This file contains the pattern of the labyrinth."
                        "File must have 15 rows and 15 columns."
                        "The pattern of the labyrinth is composed"
                        "of the 'F' and 'W'. 'F' represents the floor,"
                        "'W' represents water. The position of the"
                        "guardian, represented by 'G', must also be"
                        "proposed in the pattern."
                        "It contains only one guardian"
                        "and it should be placed on the "
                        "bottom right corner, like lab[14][14].")
    arguments = parser.parse_args()
    p_file = arguments.pattern

    g = Game(p_file)
    g.game_loop()
コード例 #2
0
ファイル: connect4.py プロジェクト: jayanam/connect4_python
from classes.game import Game

game = Game()
game.game_loop()