Re: Mastermind Puzzle (3-digit Combination Lock) -- Elegant (readable) code Sought
HenHanna <HenHanna@gmail.com> writes:
> Could you share a short, VERY Readable Pythonic (or Common Lisp,
> Scheme) code that solves this?
This is getting spammy. It would have been preferable to cross post if
you were going to ask for different languages. (I posted a solution in
comp.lang.python). It's a cute puzzle but the basic approach is the
same in any traditional language, more or less. It would be more
interesting to try something like Prolog where you'd use a built in
constraint solver.
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735