1gnubik(6)                  GNU Utility Documentation                 gnubik(6)
2
3
4

NAME

6       gnubik -  an interactive, graphic Magic cube program.
7

SYNOPSIS

9       gnubik [window_system_options] [-hvs]  [-z n]  [-a m]
10
11

DESCRIPTION

13       This is a program which displays a 3 dimensional image of a magic cube,
14       as introduced to the world by its Hungarian inventor, Erno Rubik.   The
15       user  rotates the blocks of the cube, and attempts to solve the puzzle,
16       by moving all the blocks to their correct positions  and  orientations,
17       resulting in a cube with a single colour on each face.
18

OPERATION

20       The user interacts with the program in the following ways:
21
22   Viewing the Cube
23       The  viewing  position  may be altered using the arrow keys or by using
24       the mouse.  The left and right arrow keys rotate  the  cube  about  the
25       vertical axis.  The up and down keys rotate the cube about the horizon‐
26       tal axis.  Holding down the shift key  whilst  pressing  the  left  and
27       right arrow keys rotates the cube about the z axis.
28
29       To  rotate  the  cube  using the mouse, hold down button 1 and move the
30       mouse anywhere on the window.  If your mouse has a  scroll  wheel,  you
31       can use this to rotate the cube about the z axis.
32
33
34   Performing Rotations
35       Rotations are performed using the mouse.  To manipulate the cube, place
36       the mouse cursor on a square in the cube, against the edge  facing  the
37       direction you want to move, and click button 1.
38
39       The mouse cursor will indicate the direction of rotation.
40
41

OPTIONS

43       The  following  options may be specified on the command line at invoca‐
44       tion.
45
46       -z n   Draws a cube of dimension n, where n is positive.   The  default
47              value of n is 3.
48
49       -a m   When  rotating parts of the cube, show m intermediate positions.
50              The default for this value is 2.  Setting  to  a  higher  value,
51              will give smoother animations, but will slow down the whole pro‐
52              gram.
53
54       -s     Starts with the cube already solved.  By default, it starts in a
55              random position.
56
57       -h     Display a help message and exit.
58
59       -v     Display version number and then exit.
60
61

IMPLEMENTATION

63       The  code  for  gnubik  was written in ANSI compliant C, using the Mesa
64       graphics library, and the Gtk+ library.  As such, it should be easy  to
65       generate  a version for any system complying with these standards.  The
66       program was developed on a GNU/Linux platform running XFree86.
67

BUGS

69       The rendering process is slow - especially over a network,  since  dis‐
70       play  lists  aren't  currently  used.  The entire image is re-rendered,
71       during each refresh, regardless of which components have changed  their
72       appearance.
73
75       Copyright (C) 1998 John Darrington.
76
77       This program is free software; you can redistribute it and/or modify it
78       under the terms of the GNU General Public License as published  by  the
79       Free  Software Foundation; either version 3 of the License, or (at your
80       option) any later version.
81
82       This program is distributed in the hope that it  will  be  useful,  but
83       WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of MER‐
84       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  General
85       Public License for more details.
86
87       You should have received a copy of the GNU General Public License along
88       with this program.  If not, see <http://www.gnu.org/licenses/>.
89
90
91
92JMD                              16 June 2003                        gnubik(6)
Impressum