/usr/share/doc/xmpuzzles/xmcubes.README is in xmpuzzles 7.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | xcubes
======
A Cubes Widget
Web: http://www.tux.org/~bagleyd/puzzles.html
Download: Primary site: ftp://ftp.tux.org/pub/tux/bagleyd/xpuzzles
Secondary site: ftp://ibiblio.org/pub/Linux/games/strategy
Maintainer: David A. Bagley <bagleyd@tux.org>
You may need to install one of these to build Motif version:
sudo apt-get install libmotif-dev
sudo apt-get install lesstif2-dev
Then should be a simple
configure; make
Try resizing the puzzle. Notice the puzzle resizes to take advantage of
the "room" available.
Try editing the file Cubes.ad to get a certain feature and then copying
to $(HOME)/Cubes (where Cubes is the file name) and running xcubes
again. There is also a Windows port (wcubes).
I stole many good things from the X11 "puzzle" by Don Bennett (except
his sliding image). This program completes a theme with xtriangles and
xhexagons. This program could be further generalized to do a tesseract
the puzzle but in fact, it gets no harder than the 2-D puzzle except that
its more tedious.
Refer to the man page for detailed command line options and instructions
on how to operate.
If you want further information on puzzles, I'll be glad :-) to send
it to you.
MATHEMATICAL STUFF USED IN CONSTRUCTION
Assuming it is a box of i columns, j rows, and k stacks and the
numbering starts from 1.
Corner 1-> 1
2-> i
3-> i*j-i+1
4-> i*j
5-> i*j*k-i*j+1
6-> i*j*k-i*j+i
7-> i*j*k-i+1
8-> i*j*k
Center -> i%2 =>
0: None
1: ((i+1)/2)^3
Max_Width -> i units
Max_Height -> j units
Max_Depth -> k units
Start -> x=y=z=0
Next -> n%i =>
0: x= 0 units; y+= 1 unit
if (y == j)
{y = 0 units; z+= 1 unit;}
default: x+= 1 unit
Same row? -> (m-1) / i == (n-1) / i
Same column? -> ((m-1) % i == (n-1) % i) &&
((m-1) / (i*j) == (n-1) / (i*j))
Same stack? -> (m-1) % (i*j) == (n-1) % (i*j)
FOUND A BUG?
Send bugs reports and fixes to the author. For bugs, please include
as much information as to their location as possible, since I may not
be able to duplicate them.
|