From c891b4d6f42c5f4a1de4fedd4d92561db5b09ce9 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sat, 10 Oct 2026 16:34:22 +0200 Subject: [PATCH] Misc.updates and new straight line map --- game/handlers/userPlayerGameHandler.py | 2 +- maps/default.toml | 4 ++-- maps/straight_line.toml | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 maps/straight_line.toml diff --git a/game/handlers/userPlayerGameHandler.py b/game/handlers/userPlayerGameHandler.py index 28cb856..41013f2 100644 --- a/game/handlers/userPlayerGameHandler.py +++ b/game/handlers/userPlayerGameHandler.py @@ -25,7 +25,7 @@ class UserPlayerGameHandler(GameHandler): """ print("\nAvailable maps:") for i, map_name in enumerate(self.mapReader.get_map_names()): - print(f"{i + 1}. {map_name.replace("_", " ").title()}") + print(f"[{i + 1}] {map_name.replace("_", " ").title()}") while True: try: diff --git a/maps/default.toml b/maps/default.toml index 7770722..a83137c 100644 --- a/maps/default.toml +++ b/maps/default.toml @@ -1,6 +1,6 @@ difficulty = 10 -min_moves = 6 -layout = """\ +min_moves = 7 +layout = """ ############ # E# # ° °## diff --git a/maps/straight_line.toml b/maps/straight_line.toml new file mode 100644 index 0000000..590ed90 --- /dev/null +++ b/maps/straight_line.toml @@ -0,0 +1,9 @@ +difficulty = 0 +min_moves = 11 +layout = """ +# # +#S E# +######################### +""" + +# You can go 2 blocks by jumping in diagonal instead of simply going left or right \ No newline at end of file