Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Remember: use logout to logout.


tech / sci.math / Number-dle (Mastermind) puzzle (with 3 digits)

SubjectAuthor
o Number-dle (Mastermind) puzzle (with 3 digits)HenHanna

1
Number-dle (Mastermind) puzzle (with 3 digits)

<urg9pq$22ao7$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=155360&group=sci.math#155360

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHa...@gmail.com (HenHanna)
Newsgroups: sci.math
Subject: Number-dle (Mastermind) puzzle (with 3 digits)
Date: Sun, 25 Feb 2024 13:00:42 -0800
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <urg9pq$22ao7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 25 Feb 2024 21:00:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ce7bfe69056d0adae4ddb67da71b95e1";
logging-data="2173703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KBP29zkHo+TkxQgQ4uMhe7Jqkue3WAGs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Ij3b9iYCMer6WhfuNFe9gcxJjMI=
Content-Language: en-US
 by: HenHanna - Sun, 25 Feb 2024 21:00 UTC

Number-dle (Mastermind) puzzle (with 3 digits)

(i just wrote (non-elegant) Python code.)

Could you share a short, VERY Readable Pythonic code that solves this?

Thank you!

https://i.imgur.com/72LGJjj.jpeg

3 digit lock
[682]: One number is correct and well-placed
[614]: One number is correct but wrongly placed
[206]: Two numbers are correct but wrongly placed
[738]: Nothing is correct
[780]: One number is correct but wrongly placed

HINT -- A mark of a great puzzle, this one contains a surprises or two.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor