From 90094c082a5d3359ed2490be0c78e5d514e7187c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 30 Sep 2024 16:53:11 -0700 Subject: [PATCH] Update mmind.py resolved https://github.com/SpudGunMan/meshing-around/issues/74 --- modules/mmind.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mmind.py b/modules/mmind.py index 37e2ce0..cdcedd5 100644 --- a/modules/mmind.py +++ b/modules/mmind.py @@ -214,8 +214,10 @@ def compareCodeMMind(secret_code, user_guess): msg += f"Guess:{getEmojiMMind(user_guess)}\n" if perfect_pins > 0 and game_won == False: - msg += "✅ color ✅ position: {}\n".format(perfect_pins) + msg += "✅ color ✅ position: {}".format(perfect_pins) + if wrong_position > 0: + if "✅" in msg:msg += f"\n" msg += "✅ color 🚫 position: {}".format(wrong_position) if "✅" not in msg and game_won == False: