unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Emanuel Berg <incal@dataswamp.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: puzzle with string permutations [photo]
Date: Tue, 07 Jun 2022 09:12:27 +0200	[thread overview]
Message-ID: <87wndtrlpg.fsf@mbork.pl> (raw)
In-Reply-To: <87r141rn8n.fsf@dataswamp.org>


On 2022-06-07, at 08:39, Emanuel Berg <incal@dataswamp.org> wrote:

> Try to solve this - not easy!
>
>   https://dataswamp.org/~incal/pimgs/survivor-puzzle.png
>
> It is from US/CBC Survivor S42E13 around 9 minutes in.
>
> It says
>
>   eht kudtce pigelsen tagni ogod seot erontuf si ni fo hte
>
> Easy LOL :) The first word should be "the"!

I'm not sure if it's just permutations.  "kudtce" could be "tucked", but
"erontuf"?

Anyway, I would personally permute only consonants - if the vowels are
out of order, the brain can often fill in the blanks pretty easily.
Also, it would be great to leverage ispell to exclude non-words from the
list of permutations - unfortunately, I don't know how to do it
(`ispell-word' looks pretty magical to me, at least after ~10 minutes of
looking - maybe if I had more time...)

But this made me think - one could write a simple game (a bit like M-x
decipher) to help decipher "permutation-based secret messages".  Looks
like a fun project.

Also, you don't have to list all the permutations to _count_ them -
Emacs can actually compute factorials:

(calc-eval "fact(5)") => "120"
(calc-eval "fact(10)") => "3628800"

Best,

-- 
Marcin Borkowski
http://mbork.pl



  reply	other threads:[~2022-06-07  7:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-07  6:39 puzzle with string permutations [photo] Emanuel Berg
2022-06-07  7:12 ` Marcin Borkowski [this message]
2022-06-07  7:54   ` Emanuel Berg
2022-06-07  7:58     ` Emanuel Berg
2022-06-07  8:08       ` Emanuel Berg
2022-06-07 13:53         ` Emanuel Berg
2022-06-07 14:18           ` Emanuel Berg
2022-06-07 16:09             ` Yuri Khan
2022-06-07 22:04               ` Emanuel Berg
2022-06-08  0:17               ` Emanuel Berg
2022-06-08  2:52                 ` missing Lisp world (was: Re: puzzle with string permutations [photo]) Emanuel Berg
2022-06-07  8:37   ` puzzle with string permutations [photo] Emanuel Berg
2022-06-07 13:28     ` Emanuel Berg
2022-08-01  6:39 ` Marcin Borkowski
2022-08-01  7:39   ` Emanuel Berg
2022-08-02 12:21   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wndtrlpg.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=help-gnu-emacs@gnu.org \
    --cc=incal@dataswamp.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).