Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Scientists will study your brain to learn more about your distant cousin, Man.


interests / rec.puzzles.crosswords / Mastermind puzzle (with 3 digits)

SubjectAuthor
* Mastermind puzzle (with 3 digits)HenHanna
+- Re: Mastermind puzzle (with 3 digits)Ammammata
+* Re: Mastermind puzzle (with 3 digits)Carl G.
|`- Re: Mastermind puzzle (with 3 digits)HenHanna
`* Re: Mastermind puzzle (with 3 digits)Blue-Maned_Hawk
 `- Re: Mastermind puzzle (with 3 digits)HenHanna

1
Mastermind puzzle (with 3 digits)

<urga75$22ao7$3@dont-email.me>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=1366&group=rec.puzzles.crosswords#1366

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@gmail.com (HenHanna)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
Subject: Mastermind puzzle (with 3 digits)
Date: Sun, 25 Feb 2024 13:07:49 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <urga75$22ao7$3@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:07:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ce7bfe69056d0adae4ddb67da71b95e1";
logging-data="2173703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pwKffk7DyvAQe/xm1QkhoN5wHG7k6qBs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:J8Juq0z+INEvE3WkTSVCKOg5XzY=
Content-Language: en-US
 by: HenHanna - Sun, 25 Feb 2024 21:07 UTC

What's another great problem like this one?

(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 surprise or two.

Re: Mastermind puzzle (with 3 digits)

<urhga7$kcne$1@solani.org>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=1367&group=rec.puzzles.crosswords#1367

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Followup: rec.puzzles
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ammammata@tiscali.it (Ammammata)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
Subject: Re: Mastermind puzzle (with 3 digits)
Followup-To: rec.puzzles
Date: Mon, 26 Feb 2024 08:57:57 +0100
Message-ID: <urhga7$kcne$1@solani.org>
References: <urga75$22ao7$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 26 Feb 2024 07:57:59 -0000 (UTC)
Injection-Info: solani.org;
logging-data="668398"; mail-complaints-to="abuse@news.solani.org"
Cancel-Lock: sha1:ZxoyOINpIgs8fAeQi8gSTHP4zWY=
X-Newsreader: MesNews/1.08.06.00-gb
X-User-ID: eJwNycERACEIA8CWjEJylCOI/ZdwPnfWF8GS0Wl+/VrPZRyVWBk974bN77Q+x3kFSN2+8+loKIs1EFvRzkjDD0zJFVs=
 by: Ammammata - Mon, 26 Feb 2024 07:57 UTC

HenHanna laid this down on his screen :
> 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

042

--
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
............ [ al lavoro ] ...........

Re: Mastermind puzzle (with 3 digits)

<7d39e4e4-ef9d-416b-a75a-1a0c7e76240b@microprizes.com>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=1368&group=rec.puzzles.crosswords#1368

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: carlgnews@microprizes.com (Carl G.)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
Subject: Re: Mastermind puzzle (with 3 digits)
Date: Tue, 27 Feb 2024 10:30:03 -0800
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <7d39e4e4-ef9d-416b-a75a-1a0c7e76240b@microprizes.com>
References: <urga75$22ao7$3@dont-email.me>
Reply-To: carlgnewsDELETECAPS@microprizes.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="6e0c98ef07f5717a4c27d6eb8e23329d";
logging-data="3527027"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//DF1hCF+UWZqf4LUUT39m"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:g1JwQNiLgc1U/huMvr177lp7NxE=
X-Antivirus-Status: Clean
X-Antivirus: AVG (VPS 240226-2, 2/26/2024), Outbound message
In-Reply-To: <urga75$22ao7$3@dont-email.me>
Content-Language: en-US
 by: Carl G. - Tue, 27 Feb 2024 18:30 UTC

On 2/25/2024 1:07 PM, HenHanna wrote:
>
> What's another great problem like this one?
>
>
>                 (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 surprise or two.
>
I currently don't have time to write code (plus I don't write a lot of
Python code), but I would suggest writing a Boolean function that takes
the test number, a "correct and correctly placed" count, and a "correct,
but wrongly placed" count, for arguments and returns "True" when the
clue conditions are met, "False" otherwise. Then call the function
within a loop that cycles over all allowed numbers and checks if all
conditions are met for each number. It may not be any more "elegant"
than the code you wrote, but it could be easily adapted for other
problems (different clues, only test for digits 0 to 4, etc.) The code
could be made very readable, especially if clues are each on their own
line. If letters were used instead of digits, the function would not be
limited to ten values. The function could also be used as a tool to
create similar puzzles by looking for clue-sets that yield unique
solutions.

ObPuzzle1: Write a "one-liner" program (in Python, Powershell, Basic
script, etc.), that, although inelegant (even obfuscated :)), finds the
solution.

ObPuzzle2: How many five-clue "clue-sets" for 3-digit numbers (like the
example) have an unique solution? The clues could be 0 to 3 "correct
and well-placed, 0 to 3 "correct but wrongly-placed" (up to 3 "correct").
--
Carl G.

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Re: Mastermind puzzle (with 3 digits)

<96f9e26bbf59e8db60f3abcb8d43c2e7@www.novabbs.com>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=1369&group=rec.puzzles.crosswords#1369

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Path: i2pn2.org!.POSTED!not-for-mail
From: HenHanna@gmail.com (HenHanna)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
Subject: Re: Mastermind puzzle (with 3 digits)
Date: Tue, 27 Feb 2024 18:59:44 +0000
Organization: novaBBS
Message-ID: <96f9e26bbf59e8db60f3abcb8d43c2e7@www.novabbs.com>
References: <urga75$22ao7$3@dont-email.me> <7d39e4e4-ef9d-416b-a75a-1a0c7e76240b@microprizes.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="141431"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$rXwYztZrclyXMM6OfGNut.Sb3WkPN4LbYryCFN7AfgCCBjJQKn8.i
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
 by: HenHanna - Tue, 27 Feb 2024 18:59 UTC

Carl G. wrote:

> On 2/25/2024 1:07 PM, HenHanna wrote:
>>

> I currently don't have time to write code (plus I don't write a lot of
> Python code), ................

> ObPuzzle1: Write a "one-liner" program (in Python, Powershell, Basic
> script, etc.), that, although inelegant (even obfuscated :)), finds the solution.

thanks.... i'll try

bard.google.com (now Gemini) can't write Python code that solves this. Can ChatGPT do it?

re: constraint satisfaction problem (CSP)

i have Knuth's book on CSP... i'll check inside.

i studied Prolog when i was younger. (Wrote a Prolog interpreter in Lisp, etc.)

Is this a typical easy exercise in Prolog programming? Could someone share Prolog code for it?

Re: Mastermind puzzle (with 3 digits)

<pan$be3d7$57b59a84$72a7a390$b4e1d845@invalid.invalid>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=1370&group=rec.puzzles.crosswords#1370

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!bluemanedhawk.eternal-september.org!.POSTED!not-for-mail
From: bluemanedhawk@invalid.invalid (Blue-Maned_Hawk)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
Subject: Re: Mastermind puzzle (with 3 digits)
Date: Sat, 2 Mar 2024 22:10:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <pan$be3d7$57b59a84$72a7a390$b4e1d845@invalid.invalid>
References: <urga75$22ao7$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 2 Mar 2024 22:10:28 -0000 (UTC)
Injection-Info: bluemanedhawk.eternal-september.org; posting-host="2b34ef00d9b28080768b8cb3814c1f7b";
logging-data="2206723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18u9nSWXZifocBrson9XWw1jTQvFHo5FE8="
User-Agent: Pan/0.154 (Izium; 517acf4)
Cancel-Lock: sha1:Hj++kbl/Z29n0hJIbkkeKm4GJcs=
X-Face: Llanfair­pwllgwyng
yll
­gogeryÂÃ
? ?­chwyrnÂÂÂÂÂÂ
­drobwll­llanÃ
‚Ã
ƒƒƒ‚­tysilioÂÂÂÃ
‚­gogo­goch
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACh0lEQVRYw71Z21bD
MAzzevbfkr4cHjrSXJyL044+MDa6WLEl2SkvkrZ1AbAvXO+bUGSCPYnsuIVGMpm
ZLnjX718GhAKNsp8lON2F9VrhELwIgJlBepkZjA78rVK+FkmNhEJK76UsJlz8+E
rJsjrpYouhLo/SC6qPHgakFOR8wV9+8rCfO/I/oVnmUZUp42/LW2XkLj9TCFNM9
jp5g2EmHZgpYZjCOkYU7sXVogRylJqpdggoFLG1g09Flah/7kErCxzR9HgXPYsq
0glb9cxjIz2Vsk9AmAoCSxECpD713joMKjQqLAtmMqJmXjdVvlMnMQCVITotJd1
z+fh1f1NNo+vuc1KnhWUmY7t03vydTud9BbXCtN3L2PL3bK7JCNG0GHzuZxafyB
fxevCxpm1vrwZltqw6SILCcdoCE6PGQC8wZWDA9Or7Qp5s3lAZezys0nDazs9S9
R0TjwEiksRxLkNPC1NMMWPs1bj0Ei0Yuo+JVtFLuzP1NRJ16qXWN8DhhtmS4PDg
O6mqRxs4bEJrYt087mSIow/1VzW2oFlMQuiuIy/KsUagvhdw6hSjJGlIavbLF8x
j3X47bccLcUSi0dkWh1nUZNhANT1tHKUXrNxNLbd9KPb9wDDVrKwmPQMOPQ1oy6
k5I1DwzDeRJd3jVIhDAUxq3ngzJG4CCkNXZxZVMcjefoK2J0gUY2S3rxz/RuTFx
2zHd9U+obimJXMG4edsk/2j5pTU5G1MmzbRLxkfq5EiT1GGsidvMGzi+1goGb2l
GCrN+nGnV8xj3q3JLRDVPL96vUc7Z4aJ3TN1mVqWAMJMfG+Jxh6TQqP+92iZkCU
xtglds1AB6r0aiSHKcnFck+p/c/0CbacFLQcajGcAAAAASUVORK5CYII=
 by: Blue-Maned_Hawk - Sat, 2 Mar 2024 22:10 UTC

HenHanna wrote:

> What's another great problem like this one?
>
>
> (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 surprise or two.

My answer: mreb sbyybjrq ol sbhe cerprrqvat gjb frrzf gb zrrg nyy bs gur
erdhverzragf.

Now to see if i was correct…

--
Blue-Maned_Hawk│shortens to
Hawk│/
blu.mɛin.dÊ°ak/
│he/him/his/himself/Mr.
blue-maned_hawk.srht.site
…assuming i'm understanding things correctly, which i may not be.

Re: Mastermind puzzle (with 3 digits)

<9c1d34d1dfe32be9b6008cb203dbe7d4@www.novabbs.com>

  copy mid

https://news.novabbs.org/interests/article-flat.php?id=1375&group=rec.puzzles.crosswords#1375

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Path: i2pn2.org!.POSTED!not-for-mail
From: HenHanna@dev.null (HenHanna)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
Subject: Re: Mastermind puzzle (with 3 digits)
Date: Sun, 10 Mar 2024 01:07:28 +0000
Organization: novaBBS
Message-ID: <9c1d34d1dfe32be9b6008cb203dbe7d4@www.novabbs.com>
References: <urga75$22ao7$3@dont-email.me> <pan$be3d7$57b59a84$72a7a390$b4e1d845@invalid.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1456371"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
X-Rslight-Site: $2y$10$nDnsTWFdEdNzvyq866yl6OZhAhuj8M86tJLMlBLTO1a4QTcRgiEfq
X-Face: P#KeQ)CUdd!==@fw~Ms1=,Hb`IWtb6:Mw)x3B=H1BfNC\lz?Nb&)M9}$>?'X7l;CuB}utlJ=PHsRBSG6X>dYZ$[>P]$~+`>@V6$t}hTLoQ7XC~W\>:`B3ALU]SH;d(\MEc}znW8m}-ma&yPFkJ2@KSQrz=!Y;><;6a>z6N+mt`ClCt.PAE<o+B$qjwejZSZ,w]^;vrdl24z5(pm={l,F10qRDF
 by: HenHanna - Sun, 10 Mar 2024 01:07 UTC

Blue-Maned_Hawk wrote:

> HenHanna wrote:

>> What's another great problem like this one?
>>
>>
>> (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 surprise or two.

> My answer: mreb sbyybjrq ol sbhe cerprrqvat gjb frrzf gb zrrg nyy bs gur
> erdhverzragf.

> Now to see if i was correct…

--
Blue-Maned_Hawk│shortens to
Hawk│/
blu.mɛin.dÊ°ak/
│he/him/his/himself/Mr.
blue-maned_hawk.srht.site
…assuming i'm understanding things correctly, which i may not be.



Here, i can see your XFACE, but...

Your sig seems to contain strange chars.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor