def start_game(debug=False):
    args = parse_cli_args()

    if args['version']:
        print_version_and_exit()

    if args['rules']:
        print_rules_and_exit()

    game = Game(**args)
    if args['resume']:
        game.restore()

    if debug:
        return game

    return game.loop()
Start a new game. If ``debug`` is set to ``True``, the game object is
dataset/ETHPy150Open bfontaine/term2048/term2048/ui.py/start_game