XPANEX(6)

๐Ÿ“ฆ
version 8.9.4 ยท 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿฆ‹ 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_column is the top tile of the column
  • to_column is 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