This website requires JavaScript.
Explore
Help
Sign In
gitea-mirror
/
basic-computer-games
Watch
1
Star
0
Fork
0
You've already forked basic-computer-games
mirror of
https://github.com/coding-horror/basic-computer-games.git
synced
2025-12-22 15:16:33 -08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
bacad32a618bc6b87c354b0e4757b3c74ad42eb7
basic-computer-games
/
60_Mastermind
/
python
/
mastermind.py
Joe Nellis
bacad32a61
Off by one error in for/range. Previously if the computer chose a secret code of zero (all blacks) it would skip initialization entirely and the player would not be able to finish the puzzle. Alternatively, if the computer chose the highest secret code (e.g. all Red in a three color puzzle), the actual secret code would be initialized to one less (RRW).
2022-04-24 17:39:03 -07:00
11 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink