File: xpyraminx.html

package info (click to toggle)
xpuzzles 7.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,208 kB
  • sloc: ansic: 94,274; makefile: 7,477; sh: 3,221
file content (330 lines) | stat: -rw-r--r-- 14,639 bytes parent folder | download
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<HTML>
<HEAD>
<TITLE>xpyraminx</TITLE>
</HEAD>
<BODY>
<H1>xpyraminx</H1>
<HR>
<PRE>

</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>/usr/games/xpyraminx</B>                                         [-geometry
       [{width}][x{height}][{+-}{xoff}[{+-}{yoff}]]]                 [-display
       [{host}]:[{vs}]]   [-[no]mono]   [-[no]{reverse|rv}]  [-{foreground|fg}
       {color}] [-{background|bg} {color}]  [-face{0|1|2|3}  {color}]  [-{bor-
       der|bd}  {color}]  [-delay  msecs] [-[no]sound] [-moveSound {filename}]
       [-{font|fn} {fontname}] [-{size {int} | sticky}] [-{mode {int} | both}]
       [-[no]orient]  [-[no]practice]  [-userName {string}] [-scoreFile {file-
       name}] [-scores] [-version]


</PRE>
<H2>DESCRIPTION</H2><PRE>
       The original puzzle has 9 triangles per face (size = 3) and has  period
       3  turning (i.e. the face or points turn in 120 degree intervals).  The
       puzzle was designed by Uwe Meffert and called the Pyraminx.   This  has
       2^5*3^8*6!/2 or 75,582,720 different combinations.

       Another  puzzle  Senior  Pyraminx  3x3x3  exists  only on paper, it has
       period 2 turning (i.e.  edges turn with 180 degree intervals)  but  the
       corners  would fall off unless it had some tricky mechanism.  (This may
       be the same as the Master Pyraminx which has  446,965,972,992,000  dif-
       ferent combinations).

       Another  puzzle (which was not widely distributed), the Junior Pyraminx
       (and similarly the Junior Pyraminx Star, a  octahedron  formed  by  two
       tetrahedra, this has 7!*3^6 or 3,674,160 different combinations), has 4
       triangles (size = 2) per face.  This puzzle has been recently  reissued
       by  Meffert  as  Pyramorphix  (http://www.mefferts-puzzles.com). At the
       time I designed this computer puzzle thought that it had only period  2
       turning (i.e the edges rotate).  It turns out the puzzle has a period 4
       turning (edges turn with 90 degree intervals) which makes it  analogous
       to  the  2x2x2 Rubik's cube.  This puzzle makes various non-tetrahedral
       shapes.  The puzzle contained here has no period 4 turning flexability.

       One  is  able to simulate Halpern's Tetrahedron or Pyraminx Tetrahedron
       (period 3 turning and sticky mode).   Also one is able to simulate  one
       with variant turning (period 2 turning and sticky mode).


</PRE>
<H2>FEATURES</H2><PRE>
       Press "<B>mouse-left</B>" button to move a piece.  Release "<B>mouse-left</B>" button
       on a piece on the same face and in the same row (but  not  an  adjacent
       piece  or  the  move  is ambiguous).  The pieces will then turn towards
       where the mouse button was released.

       Click "<B>mouse-center</B>", or press "<B>P</B>" or "<B>p</B>" keys to toggle  the  practice
       mode (in practice mode the record should say "practice").  This is good
       for learning moves and experimenting.

       Click "<B>mouse-right</B>", or press "<B>Z</B>" or "<B>z</B>" keys, to randomize the  puzzle
       (this must be done first to set a new record).

       Press "<B>G</B>" or "<B>g</B>" keys to get a saved puzzle.

       Press "<B>W</B>" or "<B>w</B>" keys to save (write) a puzzle.

       Press "<B>U</B>" or "<B>u</B>" keys to undo a move.

       Press "<B>R</B>" or "<B>r</B>" keys to redo a move.

       Press "<B>C</B>" or "<B>c</B>" keys to clear the puzzle.

       Press  "<B>S</B>"  or  "<B>s</B>"  keys  to  start auto-solver.  Only works on 1x1x1,
       2x2x2, and 3x3x3 facets in Period 3 mode.

       Press "<B>O</B>" or "<B>o</B>" keys to toggle the orient mode.  One has to orient the
       faces  in  orient  mode,  besides  getting all the faces to be the same
       color.  To do this one has to get the lines to be oriented in the  same
       direction, this only matters with center pieces, if at all (i.e.  those
       pieces not on a corner or edge).  This does add complexity so there are
       2 sets of records.

       Press  "<B>2</B>", "<B>3</B>", "<B>B</B>", or "<B>b</B>" keys (not the keypad 2, 3) to change modes
       to Period 2, Period 3, or Both.

       Press "<B>Y</B>" or "<B>y</B>" keys to toggle sticky mode (increase/decrease is  dis-
       abled here if sticky mode is on).
       "Sticky"  and "Period 2" turning allows only the edges to turn, and the
       2 center rows turn together. It is as if the middle cut  of  the  three
       cuts did not exist.
       "Sticky" and "Period 3" turning allows only the faces to turn, it is as
       if the middle cut of the three cuts did not exist.
       Beware, the "Sticky" mode is a hack and much could be done  to  improve
       its look.

       Press "<B>I</B>" or "<B>i</B>" keys to increase the number of pieces.

       Press "<B>D</B>" or "<B>d</B>" keys to decrease the number of pieces.

       Press "<B>&gt;</B>" or "<B>.</B>" keys to speed up the movement of pieces.

       Press "<B>&lt;</B>" or "<B>,</B>" keys to slow down the movement of pieces.

       Press "<B>@</B>" key to toggle the sound.

       Press "<B>Esc</B>" key to hide program.

       Press "<B>Q</B>", "<B>q</B>", or "<B>CTRL-C</B>" keys to kill program.

       Use the key pad or arrow keys to move without the mouse.
       Key pad is defined for Pyraminx as:
         /     Counterclockwise

         8 9   Up, Upper Right
         ^
       4&lt;5&gt;6   Left, Clockwise, Right
         v
       1 2     Lower Left, Down

       Use  the shift keys to access "Period 3" turns from "Both" mode, other-
       wise it assumes "Period 2" turning.  Faces and points turn  in  "Period
       3" and edges (2 points) turn in "Period 2".

       Use the control key and the left mouse button, keypad, or arrow keys to
       move the whole tetrahedron.  This is not recorded as a turn.

       The title is in the following format (non-motif version):
              xpyraminx.{2|3|both&lt;turning modes&gt;}:  {1|2|3|4|5|6|7|sticky&lt;num-
              ber of pieces per edge&gt;} @ (&lt;Number of moves&gt;/{&lt;Record number of
              moves&gt; &lt;user name&gt;|"NEVER noaccess"|"practice"}) - &lt;Comment&gt;
       If there is no record of the current puzzle, it displays  "NEVER  noac-
       cess".


</PRE>
<H2>OPTIONS</H2><PRE>
       <B>-geometry</B> <B>{+|-}</B><I>X</I><B>{+|-}</B><I>Y</I>
               This  option  sets  the initial position of the pyraminx window
               (resource name "<I>geometry</I>").

       <B>-display</B> <I>host</I><B>:</B><I>dpy</I>
               This option specifies the X server to contact.

       <B>-[no]mono</B>
               This option allows you to display  the  pyraminx  window  on  a
               color screen as if it were monochrome (resource name "<I>mono</I>").

       <B>-[no]{reverse|rv}</B>
               This  option  allows  you to see the pyraminx window in reverse
               video (resource name "<I>reverseVideo</I>").

       <B>-{foreground|fg}</B> <I>color</I>
               This option specifies the foreground  of  the  pyraminx  window
               (resource name "<I>foreground</I>").

       <B>-{background|bg}</B> <I>color</I>
               This  option  specifies  the  background of the pyraminx window
               (resource name "<I>background</I>").

       <B>-face{0|1|2|3}</B> <B>&lt;</B><I>color</I><B>&gt;</B>
               This option allows you to change the color of a face  (resource
               name  "<I>faceColorN</I>").  In mono-mode, color is represented as the
               first letter of the color name. The faces are  ordered  top  to
               bottom  and  left  to  right.  If you has two colors that begin
               with the same letter you should have one in uppercase  and  one
               in  lowercase  to distinguish them in mono-mode. You can change
               the colors of the faces to make a  stupid  pyraminx  (i.e.  all
               White  or  in  mono-mode  all "W").  Unfortunately, it will not
               normally say its solved when its  randomized.   This  would  be
               cheating.

       <B>-{border|bd}</B> <I>color</I>
               This  option  specifies  the  border color of the pieces in the
               pyraminx window (resource name "<I>borderColor</I>").

       <B>-delay</B> <I>msecs</I>
               This option specifies the number of milliseconds  it  takes  to
               move pieces (1-50) (resource name "<I>delay</I>").

       <B>-[no]sound</B>
               This  option specifies if sliding pieces should make a sound or
               not (resource name "<I>sound</I>").

       <B>-moveSound</B> <I>filename</I>
               This option specifies the file  for  the  move  sound  for  the
               twisting of the puzzle (resource name "<I>moveSound</I>").

       <B>-{font|fn}</B> <B>ontname</B>
               This option specifies the font that will be used (resource name
               "<I>font</I>").

       <B>-size</B> <B>&lt;</B><I>int</I><B>&gt;</B>
               This option allows you to change the number of pieces on a edge
               (resource name "<I>size</I>").

       <B>-sticky</B> This  option  allows  you to set the sticky mode (resource name
               "<I>sticky</I>").

       <B>-mode</B> <B>&lt;</B><I>int</I><B>&gt;</B>
               This option allows you to set the turning mode  (resource  name
               "<I>mode</I>").

       <B>-both</B>   This option allows you to set the turning mode to both period 2
               and period 3 (resource name "<I>mode</I>" set at 4).

       <B>-[no]orient</B>
               This option allows you to access the orient mode (resource name
               "<I>orient</I>").

       <B>-[no]practice</B>
               This  option  allows  you to access the practice mode (resource
               name "<I>practice</I>").

       <B>-userName</B> <I>string</I>
               This option specifies the user name for  any  records  made  or
               else it will get your login name (resource name "<I>userName</I>").

       <B>-scoreFile</B> <I>filename</I>
               Specify  an alternative score file (resource name "<I>scoreFile</I>").

       <B>-scores</B> This option lists all the recorded scores and then exits.

       <B>-version</B>
               This option tells you what version of xpyraminx you have.


</PRE>
<H2>RECORDS</H2><PRE>
       You must randomize 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.


</PRE>
<H2>SAVE FORMAT</H2><PRE>
       Here is the format for the xpyraminx configuration, starting  position,
       and  the movement of its pieces.  The format is not standard.  The rea-
       son for this is that this is simple to produce and the  standard  nota-
       tion  is  not easily scalable for variable number of pieces and turning
       modes.

       Pyraminx with default colors, not randomized:
       0     B     Blue
         1     R   Red
       2     Y     Yellow
         3     G   Green

              size: 1-7 &lt;number of triangles in the same  orientation  as  the
              face per row&gt;
              mode: 2-4 &lt;period 2 turning, period 3 turning, or both (4)&gt;
              orient:  0-1  &lt;0  false, 1 true; if 1 then lines on pieces to be
              oriented&gt;
              sticky: 0-1 &lt;0 false,  1  true;  if  1  then  some  pieces  move
              together&gt;
              practice: 0-1 &lt;0 false, 1 true&gt;
              moves: 0-MAXINT &lt;total number of moves&gt;

              startingPosition:  &lt;2  dimensional array of face piece position,
              each face has size * size pieces, if orient mode  then  orienta-
              tion number follows face number: 0 up, 1 upper right, 2 right, 3
              down, 4 lower left, and 5 left&gt;

       This is then followed by the moves, starting from 1.
              move #: &lt;face&gt; &lt;position&gt; &lt;direction&gt; &lt;control&gt;
       Each turn is with respect to a face and position.
       Position is 0 to size * size - 1.  Position 0 is the triangle  furthest
       from the center, increasing clockwise.
       Direction  is represented 0 up, 1 upper right, 2 right, 3 down, 4 lower
       left, 5 left, 9 clockwise, and 15 counterclockwise.
       Control is represented as 0 or 1, 1 if the whole tetrahedron  is  moved
       at  once  (here  position  does  not  matter), 0 if not.  The xpyraminx
       record keeper does not count a control move as a move, but here we  do.

       If  you have a Pyraminx you can not solve (2x2x2 or 3x3x3), enter it in
       pyraminx.log file.  Have size = 2 or 3, mode = 3, orient = 0,  practice
       =  0,  randomized  = 1, and moves = 0 and the number representation for
       the color of the pieces (usually 0=B, 1=R, 2=Y, 3=G).  Bring up xpyram-
       inx,  hit  'g'  so it will get your configuration and then 's' to solve
       your pyraminx and then 'w' to write out the steps.  Then  examine  your
       pyraminx.log file.


</PRE>
<H2>REFERENCES</H2><PRE>
       James  G  Nourse,  The Simple Solutions to Cubic Puzzles, Bantam Books,
       New York, November 1981, pp 8-15.

       Mastering the Magic Pyramid by Tom  Werneck,  Evans  Brothers  Limited,
       London, 1981. pp 109-111.

       Douglas  R. Hofstadter, Beyond Rubik's Cube: spheres, pyramids, dodeca-
       hedrons and God knows what else, Scientific  American,  July  1982,  pp
       16-31.

       John Ewing &amp; Czes Kosniowski, Puzzle it Out: Cubes, Groups and Puzzles,
       Cambridge University Press, New York, 1982, pp 60-61.

       Magic Cubes 1996 Catalog of Dr. Christoph Bandelow.


</PRE>
<H2>SEE ALSO</H2><PRE>
       <B>X(1)</B>, <B>xcubes(6)</B>, <B>xtriangles(6)</B>,  <B>xhexagons(6)</B>,  <B>xmlink(6)</B>,  <B>xbarrel(6)</B>,
       <B>xpanex(6)</B>,  <B>xmball(6)</B>,  <B>xoct(6)</B>,  <B>xrubik(6)</B>, <B>xskewb(6)</B>, <B>xdino(6)</B>, xaba-
       <B>cus(6)</B>


</PRE>
<H2>COPYRIGHTS</H2><PRE>
       (R) Copyright 1994-2010, David A. Bagley


</PRE>
<H2>BUG REPORTS AND PROGRAM UPDATES</H2><PRE>
       Send bugs (or their reports, or fixes) to the author:
              David A. Bagley, &lt;<I>bagleyd@tux.org</I>&gt;

       The latest version is currently at:
              <I>http://www.tux.org/~bagleyd/puzzles.html</I>
              <I>ftp://ibiblio.org/pub/Linux/games/strategy</I>



V7.6                              21 Jan 2010                     <B>XPYRAMINX(6)</B>
</PRE>
<HR>
</BODY>
</HTML>