Group Abstract Group Abstract

Message Boards Message Boards

Solving the UK Intelligence Agency's Christmas Puzzle

POSTED BY: Sander Huisman
4 Replies

enter image description here - another post of yours has been selected for the Staff Picks group, congratulations !

We are happy to see you at the tops of the "Featured Contributor" board. Thank you for your wonderful contributions, and please keep them coming!

POSTED BY: EDITORIAL BOARD
Posted 10 years ago

This works a bit faster for me; not sure about the algorithm.

POSTED BY: R L

Most likely because he/she uses all the hints, I'm just using 2 of them. With all of the hints the solving is much easier of course... I actually solved it without hints first, then there are multiple solutions, which are `pinned down' by supplying two hints.

That code might have been inspired by mine--which is fine---as some of the choices are really similar and also the exact same options, in the same order, method is exactly the same. Code is just been rewritten in places Plus@@... instead of Total@..., and similar small changes. Especially the last line:

BarcodeRecognize[(1 - constraintTable) // Image]

gives it away... Could've been BarcodeRecognize@Image[1-constraintTable] or such, but no exactly like mine ;-)

POSTED BY: Sander Huisman

Note that 22 cells are given to help you out. As I found out; only 2 are necessary in order to have a unique solution.

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard