shithub: puzzles

Download patch

ref: e3a8e64812f2fa783dc5644f04f267a291bc6098
parent: f39681ab41d60418c4a25270635a88d9cd0a685f
author: Simon Tatham <anakin@pobox.com>
date: Tue Jan 13 14:54:46 EST 2015

Put the game summaries from the website into gamedesc.txt.

More sensible to bring all the pieces of per-puzzle descriptive text
together into one place, so they can be easily reused everywhere
they're needed.

--- a/blackbox.R
+++ b/blackbox.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-blackbox:blackbox.exe:Black Box:Ball-finding puzzle
+blackbox:blackbox.exe:Black Box:Ball-finding puzzle:Find the hidden balls in the box by bouncing laser beams off them.
 !end
--- a/bridges.R
+++ b/bridges.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-bridges:bridges.exe:Bridges:Bridge-placing puzzle
+bridges:bridges.exe:Bridges:Bridge-placing puzzle:Connect all the islands with a network of bridges.
 !end
--- a/cube.R
+++ b/cube.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-cube:cube.exe:Cube:Rolling cube puzzle
+cube:cube.exe:Cube:Rolling cube puzzle:Pick up all the blue squares by rolling the cube over them.
 !end
--- a/desktop.pl
+++ b/desktop.pl
@@ -31,7 +31,7 @@
 
 while (<$desc>) {
     chomp;
-    my ($id, $win, $displayname, $description) = split /:/, $_;
+    my ($id, $win, $displayname, $description, $summary) = split /:/, $_;
 
     open my $desktop, ">", "$outdir/$id.desktop"
         or die "$outdir/$id.desktop: open: $!\n";
--- a/dominosa.R
+++ b/dominosa.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-dominosa:dominosa.exe:Dominosa:Domino tiling puzzle
+dominosa:dominosa.exe:Dominosa:Domino tiling puzzle:Tile the rectangle with a full set of dominoes.
 !end
--- a/fifteen.R
+++ b/fifteen.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-fifteen:fifteen.exe:Fifteen:Sliding block puzzle
+fifteen:fifteen.exe:Fifteen:Sliding block puzzle:Slide the tiles around to arrange them into order.
 !end
--- a/filling.R
+++ b/filling.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-filling:filling.exe:Filling:Polyomino puzzle
+filling:filling.exe:Filling:Polyomino puzzle:Mark every square with the area of its containing region.
 !end
--- a/flip.R
+++ b/flip.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-flip:flip.exe:Flip:Tile inversion puzzle
+flip:flip.exe:Flip:Tile inversion puzzle:Flip groups of squares to light them all up at once.
 !end
--- a/flood.R
+++ b/flood.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-flood:flood.exe:Flood:Flood-filling puzzle
+flood:flood.exe:Flood:Flood-filling puzzle:Turn the grid the same colour in as few flood fills as possible.
 !end
--- a/galaxies.R
+++ b/galaxies.R
@@ -24,5 +24,5 @@
 !end
 
 !begin >gamedesc.txt
-galaxies:galaxies.exe:Galaxies:Symmetric polyomino puzzle
+galaxies:galaxies.exe:Galaxies:Symmetric polyomino puzzle:Divide the grid into rotationally symmetric regions each centred on a dot.
 !end
--- a/guess.R
+++ b/guess.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-guess:guess.exe:Guess:Combination-guessing puzzle
+guess:guess.exe:Guess:Combination-guessing puzzle:Guess the hidden combination of colours.
 !end
--- a/inertia.R
+++ b/inertia.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-inertia:inertia.exe:Inertia:Gem-collecting puzzle
+inertia:inertia.exe:Inertia:Gem-collecting puzzle:Collect all the gems without running into any of the mines.
 !end
--- a/keen.R
+++ b/keen.R
@@ -21,5 +21,5 @@
 !end
 
 !begin >gamedesc.txt
-keen:keen.exe:Keen:Arithmetic Latin square puzzle
+keen:keen.exe:Keen:Arithmetic Latin square puzzle:Complete the latin square in accordance with the arithmetic clues.
 !end
--- a/lightup.R
+++ b/lightup.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-lightup:lightup.exe:Light Up:Light-bulb placing puzzle
+lightup:lightup.exe:Light Up:Light-bulb placing puzzle:Place bulbs to light up all the squares.
 !end
--- a/loopy.R
+++ b/loopy.R
@@ -27,5 +27,5 @@
 !end
 
 !begin >gamedesc.txt
-loopy:loopy.exe:Loopy:Loop-drawing puzzle
+loopy:loopy.exe:Loopy:Loop-drawing puzzle:Draw a single closed loop, given clues about number of adjacent edges.
 !end
--- a/magnets.R
+++ b/magnets.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-magnets:magnets.exe:Magnets:Magnet-placing puzzle
+magnets:magnets.exe:Magnets:Magnet-placing puzzle:Place magnets to satisfy the clues and avoid like poles touching.
 !end
--- a/map.R
+++ b/map.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-map:map.exe:Map:Map-colouring puzzle
+map:map.exe:Map:Map-colouring puzzle:Colour the map so that adjacent regions are never the same colour.
 !end
--- a/mines.R
+++ b/mines.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-mines:mines.exe:Mines:Mine-finding puzzle
+mines:mines.exe:Mines:Mine-finding puzzle:Find all the mines without treading on any of them.
 !end
--- a/net.R
+++ b/net.R
@@ -19,5 +19,5 @@
 !end
 
 !begin >gamedesc.txt
-net:netgame.exe:Net:Network jigsaw puzzle
+net:netgame.exe:Net:Network jigsaw puzzle:Rotate each tile to reassemble the network.
 !end
--- a/netslide.R
+++ b/netslide.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-netslide:netslide.exe:Netslide:Toroidal sliding network puzzle
+netslide:netslide.exe:Netslide:Toroidal sliding network puzzle:Slide a row at a time to reassemble the network.
 !end
--- a/pattern.R
+++ b/pattern.R
@@ -18,5 +18,5 @@
 !end
 
 !begin >gamedesc.txt
-pattern:pattern.exe:Pattern:Pattern puzzle
+pattern:pattern.exe:Pattern:Pattern puzzle:Fill in the pattern in the grid, given only the lengths of runs of black squares.
 !end
--- a/pearl.R
+++ b/pearl.R
@@ -19,5 +19,5 @@
 !end
 
 !begin >gamedesc.txt
-pearl:pearl.exe:Pearl:Loop-drawing puzzle
+pearl:pearl.exe:Pearl:Loop-drawing puzzle:Draw a single closed loop, given clues about corner and straight squares.
 !end
--- a/pegs.R
+++ b/pegs.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-pegs:pegs.exe:Pegs:Peg solitaire puzzle
+pegs:pegs.exe:Pegs:Peg solitaire puzzle:Jump pegs over each other to remove all but one.
 !end
--- a/range.R
+++ b/range.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-range:range.exe:Range:Visible-distance puzzle
+range:range.exe:Range:Visible-distance puzzle:Place black squares to limit the visible distance from each numbered cell.
 !end
--- a/rect.R
+++ b/rect.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-rect:rect.exe:Rectangles:Rectangles puzzle
+rect:rect.exe:Rectangles:Rectangles puzzle:Divide the grid into rectangles with areas equal to the numbers.
 !end
--- a/samegame.R
+++ b/samegame.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-samegame:samegame.exe:Same Game:Block-clearing puzzle
+samegame:samegame.exe:Same Game:Block-clearing puzzle:Clear the grid by removing touching groups of the same colour squares.
 !end
--- a/signpost.R
+++ b/signpost.R
@@ -19,5 +19,5 @@
 !end
 
 !begin >gamedesc.txt
-signpost:signpost.exe:Signpost:Square-connecting puzzle
+signpost:signpost.exe:Signpost:Square-connecting puzzle:Connect the squares into a path following the arrows.
 !end
--- a/singles.R
+++ b/singles.R
@@ -19,5 +19,5 @@
 !end
 
 !begin >gamedesc.txt
-singles:singles.exe:Singles:Number-removing puzzle
+singles:singles.exe:Singles:Number-removing puzzle:Black out the right set of duplicate numbers.
 !end
--- a/sixteen.R
+++ b/sixteen.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-sixteen:sixteen.exe:Sixteen:Toroidal sliding block puzzle
+sixteen:sixteen.exe:Sixteen:Toroidal sliding block puzzle:Slide a row at a time to arrange the tiles into order.
 !end
--- a/slant.R
+++ b/slant.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-slant:slant.exe:Slant:Maze-drawing puzzle
+slant:slant.exe:Slant:Maze-drawing puzzle:Draw a maze of slanting lines that matches the clues.
 !end
--- a/solo.R
+++ b/solo.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-solo:solo.exe:Solo:Number placement puzzle
+solo:solo.exe:Solo:Number placement puzzle:Fill in the grid so that each row, column and square block contains one of every digit.
 !end
--- a/tents.R
+++ b/tents.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-tents:tents.exe:Tents:Tent-placing puzzle
+tents:tents.exe:Tents:Tent-placing puzzle:Place a tent next to each tree.
 !end
--- a/towers.R
+++ b/towers.R
@@ -21,5 +21,5 @@
 !end
 
 !begin >gamedesc.txt
-towers:towers.exe:Towers:Tower-placing Latin square puzzle
+towers:towers.exe:Towers:Tower-placing Latin square puzzle:Complete the latin square of towers in accordance with the clues.
 !end
--- a/twiddle.R
+++ b/twiddle.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-twiddle:twiddle.exe:Twiddle:Rotational sliding block puzzle
+twiddle:twiddle.exe:Twiddle:Rotational sliding block puzzle:Rotate the tiles around themselves to arrange them into order.
 !end
--- a/undead.R
+++ b/undead.R
@@ -14,5 +14,5 @@
 !end
 
 !begin >gamedesc.txt
-undead:undead.exe:Undead:Monster-placing puzzle
+undead:undead.exe:Undead:Monster-placing puzzle:Place ghosts, vampires and zombies so that the right numbers of them can be seen in mirrors.
 !end
--- a/unequal.R
+++ b/unequal.R
@@ -23,5 +23,5 @@
 !end
 
 !begin >gamedesc.txt
-unequal:unequal.exe:Unequal:Latin square puzzle
+unequal:unequal.exe:Unequal:Latin square puzzle:Complete the latin square in accordance with the <code>&gt;</code> signs.
 !end
--- a/unfinished/group.R
+++ b/unfinished/group.R
@@ -21,5 +21,5 @@
 !end
 
 !begin >gamedesc.txt
-group:group.exe:Group:Group theory puzzle
+group:group.exe:Group:Group theory puzzle:Complete the unfinished Cayley table of a group.
 !end
--- a/unfinished/separate.R
+++ b/unfinished/separate.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-separate:separate.exe:Separate:Rectangle-dividing puzzle
+separate:separate.exe:Separate:Rectangle-dividing puzzle:Partition the grid into regions containing one of each letter.
 !end
--- a/unfinished/slide.R
+++ b/unfinished/slide.R
@@ -20,5 +20,5 @@
 !end
 
 !begin >gamedesc.txt
-slide:slide.exe:Slide:Sliding block puzzle
+slide:slide.exe:Slide:Sliding block puzzle:Slide the blocks to let the key block out.
 !end
--- a/unfinished/sokoban.R
+++ b/unfinished/sokoban.R
@@ -15,5 +15,5 @@
 !end
 
 !begin >gamedesc.txt
-sokoban:sokoban.exe:Sokoban:Barrel-pushing puzzle
+sokoban:sokoban.exe:Sokoban:Barrel-pushing puzzle:Push all the barrels into the target squares.
 !end
--- a/unruly.R
+++ b/unruly.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-unruly:unruly.exe:Unruly:Black and white grid puzzle
+unruly:unruly.exe:Unruly:Black and white grid puzzle:Fill in the black and white grid to avoid runs of three.
 !end
--- a/untangle.R
+++ b/untangle.R
@@ -17,5 +17,5 @@
 !end
 
 !begin >gamedesc.txt
-untangle:untangle.exe:Untangle:Planar graph layout puzzle
+untangle:untangle.exe:Untangle:Planar graph layout puzzle:Reposition the points so that the lines do not cross.
 !end