From 5120420329dd18b7550abc1078afc3e34c9699dd Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Thu, 25 Jul 2024 20:10:17 -0600 Subject: [PATCH] Mods --- cromulant/args.py | 2 ++ cromulant/argspec.py | 6 ++++++ cromulant/game.py | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cromulant/args.py b/cromulant/args.py index cb825e2..77b7257 100644 --- a/cromulant/args.py +++ b/cromulant/args.py @@ -13,6 +13,7 @@ class Args: images: bool = True header: bool = True footer: bool = True + intro: bool = True @staticmethod def prepare() -> None: @@ -26,6 +27,7 @@ class Args: ("no_images", "images"), ("no_header", "header"), ("no_footer", "footer"), + ("no_intro", "intro"), ] for r_item in other_name: diff --git a/cromulant/argspec.py b/cromulant/argspec.py index 99be09b..af51284 100644 --- a/cromulant/argspec.py +++ b/cromulant/argspec.py @@ -93,3 +93,9 @@ class ArgSpec: action="store_false", info="Don't show the footer controls", ) + + ArgSpec.add_argument( + "no_intro", + action="store_false", + info="Don't show the intro message", + ) diff --git a/cromulant/game.py b/cromulant/game.py index d806a8a..949f9ba 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -91,7 +91,9 @@ class Game: def prepare() -> None: Game.fill() Game.info() - Game.intro() + + if Args.intro: + Game.intro() @staticmethod def update(ant: Ant) -> None: