aboutsummaryrefslogtreecommitdiff
path: root/pearl.R
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-01-22 14:14:26 +0000
committerSimon Tatham <anakin@pobox.com>2012-01-22 14:14:26 +0000
commitb16eece9fc502afb9dfb0aca9fd7bfba2239d3e3 (patch)
treeda546ca795efe17585032a75898390da83be3022 /pearl.R
parentb2d7429d539238258ca6f9061da5a25a0835f2a9 (diff)
downloadpuzzles-b16eece9fc502afb9dfb0aca9fd7bfba2239d3e3.zip
puzzles-b16eece9fc502afb9dfb0aca9fd7bfba2239d3e3.tar.gz
puzzles-b16eece9fc502afb9dfb0aca9fd7bfba2239d3e3.tar.bz2
puzzles-b16eece9fc502afb9dfb0aca9fd7bfba2239d3e3.tar.xz
New puzzle! Or rather, new-ish, because this one has been lying around
in the 'unfinished' directory for a while, and has now been finished up thanks to James Harvey putting in some effort and galvanising me to put in the rest. This is 'Pearl', an implementation of Nikoli's 'Masyu'. The code in Loopy that generates a random loop along grid edges to use as the puzzle solution has been abstracted out into loopgen.[ch] so that Pearl can use it for its puzzle solutions too. I've also introduced a new utility module called 'tdq' (for 'to-do queue'). [originally from svn r9379]
Diffstat (limited to 'pearl.R')
-rw-r--r--pearl.R23
1 files changed, 23 insertions, 0 deletions
diff --git a/pearl.R b/pearl.R
new file mode 100644
index 0000000..82cf465
--- /dev/null
+++ b/pearl.R
@@ -0,0 +1,23 @@
+# -*- makefile -*-
+
+PEARL_EXTRA = dsf tree234 grid penrose loopgen tdq
+
+pearl : [X] GTK COMMON pearl PEARL_EXTRA pearl-icon|no-icon
+pearl : [G] WINDOWS COMMON pearl PEARL_EXTRA pearl.res?
+
+pearlbench : [U] pearl[STANDALONE_SOLVER] PEARL_EXTRA STANDALONE m.lib
+pearlbench : [C] pearl[STANDALONE_SOLVER] PEARL_EXTRA STANDALONE
+
+ALL += pearl[COMBINED] PEARL_EXTRA
+
+!begin gtk
+GAMES += pearl
+!end
+
+!begin >list.c
+ A(pearl) \
+!end
+
+!begin >wingames.lst
+pearl.exe:Pearl
+!end