From 98f47dfa44b6eec04e1a24b17724e6db37a4c26d Mon Sep 17 00:00:00 2001 From: AnthonyMichaelTDM <68485672+AnthonyMichaelTDM@users.noreply.github.com> Date: Mon, 7 Mar 2022 01:02:09 -0800 Subject: [PATCH] fix for potential logic error should fix the conflict --- 60_Mastermind/python/mastermind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/60_Mastermind/python/mastermind.py b/60_Mastermind/python/mastermind.py index f97705a0..cb898615 100644 --- a/60_Mastermind/python/mastermind.py +++ b/60_Mastermind/python/mastermind.py @@ -133,7 +133,7 @@ def main(): human_readable_possibility = make_human_readable(numeric_possibility) #4000 comparison = compare_two_positions(human_readable_possibility, human_readable_guess) print(comparison) - if ((blacks > comparison[1]) or (whites > comparison[2])): + if (blacks > comparison[1]) or (whites > comparison[2]): all_possibilities[i] = 0 if not turn_over: # COMPUTER DID NOT GUESS print("I USED UP ALL MY MOVES!")