XTRIANGLES(6) | Games Manual | XTRIANGLES(6) |
xtriangles - Triangles X widget
/usr/games/xtriangles [-geometry [{width}][x{height}][{+-}{xoff}[{+-}{yoff}]]] [-display [{host}]:[{vs}]] [-[no]mono] [-[no]{reverse|rv}] [-{foreground|fg} {color}] [-{background|bg} {color}] [-tile {color}] [-text {color}] [-delay msecs] [-[no]sound] [-bumpSound {filename}] [-{font|fn} {fontname}] [-size {int}] [-base {int}] [-userName {string}] [-scoreFile {filename}] [-scores] [-version]
A sliding tile puzzle. A triangular version of the 15 puzzle which was originally made around 1879 (the 14-15 puzzle of Sam Loyd was made soon after). T. R. Dawson in Original Puzzles has a similar puzzle with 4 diamond- and 6 triangular-shaped pieces. This puzzle is easier to solve than 15 puzzle.
Click "mouse-left" button to move a tile. Clicks on spaces, or clicks on tiles that are not in line with two spaces, will not move tiles. Notice, one can move more than one tile at a time by clicking on the tile farthest from the spaces but still in line with the spaces.
Click "mouse-right" button, or press "C" or "c" keys, to clear the puzzle.
"S" or "s" keys reserved for the auto-solver (not implemented).
Press "R" or "r" keys to read a saved puzzle.
Press "W" or "w" keys to save (write) a puzzle.
Press "U" or "u" keys to undo a move.
Press "E" or "e" keys to redo a move.
Press "Z" or "z" keys to randomize the puzzle. New records can only be set from a cleared state.
"S" or "s" keys reserved for the auto-solver (not implemented).
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.
Use the key pad or arrow keys to move without the mouse.
Key pad is defined for Triangles as:
7 9 Upper Left, Upper Right
^
4< >6 Left, Right
v
1 3 Lower Left, Lower Right
The title is in the following format (non-motif version):
You must randomize the puzzle before a record is set, otherwise an assumption of cheating is made if it is solved after a get.
Here is the format for the xtriangles configuration, starting position, and the movement of its pieces.
startingPosition: <array of tile positions where 0 is the empty space for the UP triangle and -1 is the empty space for the DOWN triangle>
This is then followed by the moves, starting from 1.
L. E. Horden, Sliding Piece Puzzles (Recreations in Mathematics Series), Oxford University Press 1986, pp 1, 148, 149.
Jerry Slocum & Jack Botermans, Puzzles Old & New (How to Make and Solve Them), University of Washington Press, Seattle, 1987, pp 126, 127.
X(1), xcubes(6), xhexagons(6), xmlink(6), xbarrel(6), xpanex(6), xmball(6), xpyraminx(6), xoct(6), xrubik(6), xskewb(6), xdino(6), xabacus(6)
® Copyright 1994-2010, David A. Bagley
Send bugs (or their reports, or fixes) to the author:
The latest version is currently at:
22 Oct 2010 | V7.6.4 |