-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moo: distinct-digits rule was not followed (#933)
* The unix version of moo selects a number where each digit occurs only once in the number [1] * A guess containing non-unique digits is not a valid guess [2] * Add a function to check for duplicate digits in guess * Rewrite secret number generator with shuffle() to guarantee unique digits 1. http://squoze.net/UNIX/v6man/man6/moo.pdf 2. https://github.com/hansklav/MOO
- Loading branch information
Showing
1 changed file
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters