Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The more the merrier. -- John Heywood


interests / rec.puzzles / 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)Phil Carmody
+* 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://novabbs.com/interests/article-flat.php?id=808&group=rec.puzzles#808

  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: HenHa...@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://novabbs.com/interests/article-flat.php?id=809&group=rec.puzzles#809

  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: ammamm...@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)

<87frxdn8hx.fsf@fatphil.org>

  copy mid

https://novabbs.com/interests/article-flat.php?id=810&group=rec.puzzles#810

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: rec.puzzles
Subject: Re: Mastermind puzzle (with 3 digits)
Date: Tue, 27 Feb 2024 19:04:58 +0200
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <87frxdn8hx.fsf@fatphil.org>
References: <urga75$22ao7$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="05615e8b5bdbc110925391213051669d";
logging-data="3496447"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EFb7GS52NF0JE4UxUygxi"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:Fn9KZXt2kfF38ci7ALJ8s9n6Q14=
sha1:3JVFGVn5+pTduaHbM58DQvU1ZK0=
 by: Phil Carmody - Tue, 27 Feb 2024 17:04 UTC

Dumb x-post removed.

HenHanna <HenHanna@gmail.com> writes:
> 3 digit lock
> a) [682]: One number is correct and well-placed
> b) [614]: One number is correct but wrongly placed
> c) [206]: Two numbers are correct but wrongly placed
> d) [738]: Nothing is correct
> e) [780]: One number is correct but wrongly placed

d & e =>
f) in [780], 7 and 8 are incorrect, so 0 is wrongly placed

f & c =>
g) in [206], 0 is correct, but wrongly placed, so 0 is in the first position

progress: [0__]

a & b =>
h) 6 cannot be correct as its position doesn't change

h & d =>
i) in [682], 2 is correct, and well-placed

progress: [0_2]

b & h =>
j) in [614], 4 is correct but wrongly placed

solution: [042]

This is not a task for python. Prolog might be a better language if you
desperately want to code an answer rather than using just simple logic,
but surely that's more effort than the above, which is trivial.

Of course, an automated solver could be repurposed into a puzzle
generator. Parametrise the size and the alphabet, and you could probably
generate puzzles that were bordering on the impractical for a human to
solve.

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: Mastermind puzzle (with 3 digits)

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

  copy mid

https://novabbs.com/interests/article-flat.php?id=811&group=rec.puzzles#811

  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: carlgn...@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://novabbs.com/interests/article-flat.php?id=812&group=rec.puzzles#812

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Date: Tue, 27 Feb 2024 18:59:44 +0000
Subject: Re: Mastermind puzzle (with 3 digits)
From: HenHa...@gmail.com (HenHanna)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
X-Rslight-Site: $2y$10$rXwYztZrclyXMM6OfGNut.Sb3WkPN4LbYryCFN7AfgCCBjJQKn8.i
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <urga75$22ao7$3@dont-email.me> <7d39e4e4-ef9d-416b-a75a-1a0c7e76240b@microprizes.com>
Organization: novaBBS
Message-ID: <96f9e26bbf59e8db60f3abcb8d43c2e7@www.novabbs.com>
 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://novabbs.com/interests/article-flat.php?id=824&group=rec.puzzles#824

  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: bluemane...@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://novabbs.com/interests/article-flat.php?id=831&group=rec.puzzles#831

  copy link   Newsgroups: rec.puzzles rec.puzzles.crosswords
Date: Sun, 10 Mar 2024 01:07:28 +0000
Subject: Re: Mastermind puzzle (with 3 digits)
From: HenHa...@dev.null (HenHanna)
Newsgroups: rec.puzzles,rec.puzzles.crosswords
X-Rslight-Site: $2y$10$nDnsTWFdEdNzvyq866yl6OZhAhuj8M86tJLMlBLTO1a4QTcRgiEfq
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <urga75$22ao7$3@dont-email.me> <pan$be3d7$57b59a84$72a7a390$b4e1d845@invalid.invalid>
Organization: novaBBS
Message-ID: <9c1d34d1dfe32be9b6008cb203dbe7d4@www.novabbs.com>
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.8
clearnet tor