POV-Ray : Newsgroups : povray.text.scene-files : chain link puzzle solver Server Time
26 Apr 2025 11:18:54 EDT (-0400)
  chain link puzzle solver (Message 1 to 1 of 1)  
From: jr
Subject: chain link puzzle solver
Date: 12 Apr 2025 06:45:00
Message: <web.67fa42b11e0c75af721a48e56cde94f1@news.povray.org>
hi,

attached is the first version of a "Chain Link" puzzle solver (attempt :-)),
inspired by Kurtz le Pirate's posting an image etc of his Sudoku solver.  here
in the UK the "i" newspaper publishes these puzzles (daily), hence the 'icls'
prefix of the code.

the archive includes a pov/inc/ini "combo" and a zip with a small number of
example puzzles. installation is simply putting the code in one directory, the
puzzle files in another, then fixing a path (line 17) in the pov file, and the
output_file_name in the ini.  also included, for Linux users, a few lines of
BASH to automate running the solver.

there are Debug and Verbose options for text output, and a 'Solve' option which
can be overridden to render just the puzzle as published -- for printing out and
manual solving :-).

the code is fairly well commented but comes w/out documentation, and requires a
3.8 version to run.  the include files used are all available from
<wiki.povray.org/content/User:Jr>.

this version implements only one simple "strategy" and, consequently, does not
solve every puzzle.  a second strategy which takes the chain layout into account
is planned, but the prerequisite "divine inspiration" has not yet struck.

comments / discussion / participation welcome.

enjoy, jr.


Post a reply to this message


Attachments:
Download 'icls-1.zip' (9 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.