XPANEX(6)
๐ฆ xpanex(6) โ Games Manual ๐ฆ
okay bestie, sit down, hydrate, and let me tell you about xpanex โ a whole X widget that is genuinely iconic and also lowkey a menace to your free time. it's from the Games Manual, it's giving 1980s toy energy, and yes, it will eat your afternoon. no cap. ๐
๐ NAME ๐
xpanex โ the Panex X widget. that's it, that's the name, she's simple like that. โจ
๐ธ SYNOPSIS ๐ธ
the way you summon her:
/usr/games/xpanex [-geometry
[{width}][x{height}][{+-}{xoff}[{+-}{yoff}]]] [-display [{host}]:[{vs}]]
[-[no]mono] [-[no]{reverse|rv}] [-{foreground|fg} {color}]
[-{background|bg} {color}] [-pyramid{0|1} {color}] [-tile {color}]
[-frame {color}] [-[no]stippleFrame] [-delay msecs] [-[no]sound]
[-moveSound {filename}] [-{font|fn} {fontname}] [-tiles {int}] [-{mode
{int}|hanoi|algorithme|panex}] [-userName {string}] [-scoreFile
{filename}] [-scores] [-version]
that's a lot of flags, i know, but we'll go through every single one together. we don't skip. skipping is not the vibe. ๐ซถ
๐ง DESCRIPTION ๐ง
โจ Panex โจ
so Panex is a grooved sliding tile puzzle, created by Toshio Akanuma and manufactured by the Tricks Co., Ltd of Tokyo, Japan (a Magic Company) back in the 1980's. the mathematicians over at Bell Laboratories did the math and calculated the number of moves to be 27,564 to 31,537. like. excuse me. ๐ญ
it came in two varieties:
- one with a magenta and an orange pyramid of order 10 on silver tiles
- the gold version, where pieces of each color look alike (i.e. no pyramid is drawn on them) โ and ngl bestie, that one is a little harder ๐
the goal? simply exchange the 2 piles. that's it. that's the whole dream. and a key little rule: pieces with smaller trapazoids cannot go down as far as pieces with bigger trapazoids. remember that, it matters. โญ
๐ผ The Tower of Hanoi ๐ผ
the original Tower of Hanoi puzzle is the invention of Edouard Lucas and was sold as a toy in France in 1883. and the legend of the 64 disks in the great temple of Benares of the god Brahma? also his invention. he was doing the most, honestly. ๐
the goal here is to move the pile from the left side to the right most column. and unlike panex, a large trapazoid cannot go on top of a smaller one โ but pieces always fall to the bottom. gravity said what it said. ๐
๐ฎ The original Algorithme 6 ๐ฎ
okay so the original Algorithme 6 is 2 stacks of 3 wooden spheres on 2 of 3 posts. the spheres come in 3 different sizes. the goal is to swap the spheres using the posts โ without putting a bigger sphere on a smaller one and without exceeding the size of the post. it was created and produced by Patrick Farvacque around 1997. ๐
the puzzle presented here has a simpler solution because the tiles are all the same height โ that's a 39 move solution as opposed to 66. slay, honestly. โจ
๐ FEATURES ๐
okay this is the fun part, this is the group chat. ๐ฌ
- press "mouse-left" button to move a tile in the top tile of a column. release "mouse-left" button on another column to move the tile to that column. it will not move if blocked. ๐ซ
- click "mouse-right" button, or press "C" or "c" keys, to clear the puzzle. ๐งน
- press "G" or "g" keys to read (get) a saved puzzle. ๐
- press "W" or "w" keys to save (write) a puzzle. ๐พ
- press "U" or "u" keys to undo a move. โฉ๏ธ
- press "R" or "r" keys to redo a move. โช๏ธ
- press "S" or "s" keys to auto-solve. unfortunately, its only implemented from the starting position. ๐ญ (she's trying her best)
- press "M" or "m" keys to switch between Hanoi (one pyramid column), Algorithme, and Panex, (each has two pyramid columns) modes โ they each have different rules. ๐๏ธ
- in Hanoi, one cannot place larger trapezoid on a smaller trapezoid. here the goal is to move the pile from the left peg to the rightmost peg.
- Algorithme is similar, here we must exchange tiles and we are limited by the size of the stack. a move from stack 1 to stack 3 and vice-versa when stack 2 is full.
- in Panex, a tile cannot go lower that its initial starting point. here again, the goal is to exchange the 2 piles.
- press "I" or "i" keys to increase the number of tiles. โฌ๏ธ
- press "D" or "d" keys to decrease the number of tiles. โฌ๏ธ
- press ">" or "." keys to speed up the movement of tiles. ๐จ
- press "<" or "," keys to slow down the movement of tiles. ๐
- press "@" key to toggle the sound. ๐
- press "Esc" key to hide program. ๐
- press "Q", "q", or "CTRL-C" keys to kill program. ๐
bestie. listen. unlike other puzzles in the collection there is no way to move pieces without drag and drop. no keyboard shortcut for moving, that's just the rules. ๐ซ
the title is in the following format (non-motif version):
x{hanoi | algorithme | panex}: <Number of rows> @ (<Number of
moves>/{<Record number of moves> <user name>|"NEVER noaccess"}) -
<Comment>
if there is no record of the current puzzle, it displays "NEVER noaccess". dramatic? yes. accurate? also yes. ๐
๐ OPTIONS ๐
one bullet per flag, every single one, we do not skip, this is a safe space. ๐ซถ
-geometry {+|-}X{+|-}Yโ this option sets the initial position of the panex window (resource name"geometry"). ๐-display host:dpyโ this option specifies the X server to contact. ๐ก-[no]monoโ this option allows you to display the panex window on a color screen as if it were monochrome (resource name"mono"). ๐ค๐ค-[no]{reverse|rv}โ this option allows you to see the panex window in reverse video (resource name"reverseVideo"). ๐-{foreground|fg} colorโ this option specifies the foreground of the panex window (resource name"foreground"). ๐จ-{background|bg} colorโ this option specifies the background of the panex window (resource name"background"). ๐๏ธ-pyramid0 colorโ this option specifies the color of the first pyramid (resource name"pyramidColor0"). ๐บ-pyramid1 colorโ this option specifies the color of the second pyramid, if it exists (resource name"pyramidColor1"). ๐ป-tile colorโ this option specifies the tile color of the tiles in the panex window (resource name"tileColor"). ๐ช-frame colorโ this option specifies the color of the frame (resource name"frameColor"). ๐ผ๏ธ-[no]stippleFrameโ this option allows you to toggle the frame stippling (resource name"stippleFrame"). โจ-delay msecsโ this option specifies the number of milliseconds it takes to move a tile or a group of tiles one space (1-50) (resource name"delay"). โฑ๏ธ-[no]soundโ this option specifies if a sliding tile should make a sound or not (resource name"sound"). ๐-moveSound filenameโ this option specifies the file for the move sound for the sliding of the tiles (resource name"moveSound"). ๐ต-{font|fn} ontnameโ this option specifies the font that will be used (resource name"font"). ๐ค-tiles intโ this option specifies the number of tiles in a column (resource name"tiles"). ๐งฑ-mode intโ this option specifies the hanoi (0), algorithme (1), or panex (2) mode (resource name"mode"). ๐๏ธ-hanoiโ this option specifies the hanoi mode (resource name"mode"). ๐ผ-algorithmeโ this option specifies the algorithme mode (resource name"mode"). ๐ฎ-panexโ this option specifies the panex mode (resource name"mode"). ๐งฉ-userName stringโ this option specifies the user name for any records made, or else it will get your login name (resource name"userName"). ๐ชช-scoreFile filenameโ specify an alternative score file (resource name"scoreFile"). ๐-scoresโ this option lists all the recorded scores and then exits. ๐-versionโ this option tells you what version of xpanex you have. ๐
๐ RECORDS ๐
you must clear the puzzle before a record is set โ otherwise an assumption of cheating is made if it is solved after a get or an auto-solve. so. no funny business bestie, she's watching. ๐
๐ SAVE FORMAT ๐
here's the format for the xpanex configuration, starting position, and the movement of its pieces:
mode: 0-2 <0 hanoi, 1 algorithme, 2 panex>
tiles: 1-10 <number of tiles in a column>
moves: 0-MAXINT <total number of moves>
startingPosition: <array pairs of column and position of each
tile>
this is then followed by the moves, starting from 1:
move #: <from_column> <to_column>
from_columnis the top tile of the columnto_columnis where that tile is moved to.
๐ REFERENCES ๐
the receipts, the sources, the academic slay. ๐
- Mark Manasse & Danny Sleator of AT&T Bell Laboratories and Victor K. Wei of Bell Communications Research, Some Results on the Panex Puzzle, Murray Hill, NJ, 1985 20 pp. (unpublished).
- Vladimir Dubrovsky, Nesting Puzzles Part 1: Moving oriental towers, Quantum/Toy Store, January/February 1996 pp 55-57, 50-51.
- L. E. Horden, Sliding Piece Puzzles (Recreations in Mathematics Series), Oxford University Press 1986, pp 144, 145.
- Jerry Slocum & Jack Botermans, Puzzles Old & New (How to Make and Solve Them), University of Washington Press, Seattle, 1987, p 135.
- Dick Hess, Analysis of the Algorithme 6 Puzzle and its Generalisations, Cubism For Fun, July 2008 76 pp 8-13.
๐ SEE ALSO ๐
the whole friend group, fr fr: X(1), xcubes(6), xtriangles(6), xhexagons(6), xmlink(6), xbarrel(6), xmball(6), xpyraminx(6), xoct(6), xrubik(6), xskewb(6), xdino(6), xbevel(6), xabacus(6). ๐
ยฉ๏ธ COPYRIGHTS ยฉ๏ธ
ยฎ Copyright 1996-2024, David A. Bagley
- main algorithm taken from AT&T paper above.
- thanks to Nick Baxter
<nickb AT baxterweb.com>for debugging level n > 4 and vTrick. ๐ซถ - though most code by Rene Jansen
<rene.j.jansen@bigfoot.com>is now removed, much inspiration was gained by his efforts implementing an algorithm from Quantum January/February 1996 by Vladimir Dubrovsky.
๐ BUG REPORTS AND PROGRAM UPDATES ๐
send bugs (or their reports, or fixes) to the author:
David A. Bagley, <bagleyd AT verizon.net>
the latest version is currently at:
https://www.sillycycle.com/puzzles.html
http://www.ibiblio.org/pub/Linux/games/strategy/
and that's the whole manual bestie!! you ate that. go solve a 27,564 move puzzle, you absolute icon. ๐โจ
version V8.8.4, dated 15 Aug 2024 โ that's the source/version and date, mwah, kiss kiss, bye!! ๐๐๐ฆ๐ธ๐
๐ฆ where this page comes from
- debian trixie: xmpuzzles 8.8.7+ds-2 ยท MIT
- debian trixie: xpuzzles 8.8.7+ds-2 ยท MIT
- ubuntu questing: xmpuzzles 8.8.7+ds-2
- ubuntu questing: xpuzzles 8.8.7+ds-2
- ubuntu resolute: xmpuzzles 8.9.0+ds-1 ยท MIT
- ubuntu resolute: xpuzzles 8.9.0+ds-1 ยท MIT
- ubuntu stonking: xmpuzzles 8.9.4+ds-1 ยท MIT
- ubuntu stonking: xpuzzles 8.9.4+ds-1 ยท MIT
- Copyright 1996 - 2024 David A. Bagley
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms