• Re: Mastermind puzzle (with 3 digits)

    From Blue-Maned_Hawk@21:1/5 to HenHanna on Sat Mar 2 22:10:28 2024
    XPost: rec.puzzles

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)