Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mastermind game in python
#2
colorCode is a list. playerGuess is a string. On line 33 (and on line 74) you cast the string as a list to do the comparison. But on line 39 you do not. The string will never be equal to the list and the while loop will never exit.
veronwltan likes this post
Reply


Messages In This Thread
Mastermind game in python - by veronwltan - Jun-16-2021, 05:02 PM
RE: Mastermind game in python - by bowlofred - Jun-16-2021, 05:05 PM
RE: Mastermind game in python - by veronwltan - Jun-16-2021, 05:35 PM
RE: Mastermind game in python - by proebba - Mar-22-2023, 12:03 PM
RE: Mastermind game in python - by proebba - Mar-22-2023, 11:48 AM
RE: Mastermind game in python - by bowlofred - Mar-22-2023, 08:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020