dxpuzzle(1X) dxpuzzle(1X)
Name
dxpuzzle - DECwindows interface to a puzzle game
Syntax
dxpuzzle [ options ]
Description
The dxpuzzle command displays a window that contains a puzzle. The puzzle is a video version of a number puzzle with slidable squares.
The goal is to arrange the squares in ascending order in the fewest possible moves. To move a square, click on it.
Options
-bd color Specifies the color of the window's border (color displays only). The default is specified by means of the Session
Manager's Customize Window dialog box.
-bg color Specifies the color of the window's background (color displays only). The default is specified by means of the Session
Manager's Customize Window dialog box.
-d dispname Specifies the display screen on which dxpuzzle displays its window. If the display option is not specified, dxpuzzle
uses the display screen specified by your DISPLAY environment variable. The display option has the format host-
name:number. Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport. The default
is :0. For more information, see
-display dispname This option is the same as the -d option.
-fg color Specifies the color of the text (color displays only). The default is specified by means of the Session Manager's Cus-
tomize Window dialog box.
-fn font Specifies the font for all parts of the puzzle other than the numbers. Use the defaults file to change the font of
numbers. The default is menu12.
-geometry Specifies the width, length, and location of the dxpuzzle window. If the geometry option is not specified, dxpuzzle
uses default values. The geometry option has the format [widthxlength][{+-}x{+-}y]. For more information about the
screen coordinate system, see
Menus
The dxpuzzle application contains the following menus:
File
Customize
Help
Pop-Up
File Menu
The File menu contains the following items:
New Game Specifies that dxpuzzle scramble the squares and start a new game.
Quit Closes the dxpuzzle window.
Customize Menu
The Customize menu contains the following items:
Settings... Displays the Settings dialog box that lets you specify the number of squares displayed in the puzzle.
Save Current Settings Saves the number of squares and the puzzle's size and position. These values will be used the next time you run
the puzzle.
Use System Defaults Restores the use of system default values for number of squares and puzzle size and position.
Help Menu
The Help menu contains the following items:
Overview Displays an overview of the dxpuzzle command
About Provides specific information about dxpuzzle.
Pop-up Menu
The dxpuzzle window has one pop-up menu. To display this pop-up menu, place the pointer at any position within the dxclock window and
click MB2 (the middle mouse button, unless you have redefined it). This menu contains the following items:
New Game
Settings...
Quit
X Defaults
The dxpuzzle application uses the values in the .Xdefaults when you logged in and uses the appropriate resource specification to customize
the appearance dxpuzzle window. The format for a resource specification in the .Xdefaults file is:
[name*]resource: value
name Specifies the application name or the name string that restricts the resource assignment to that application or to a component of
an application. If this argument is not specified, the resource assignment is globally available to all X applications.
resource Specifies the resource.
value Specifies the value that is to be assigned to the resource.
Because each toolkit-based application can consist of a combination of widgets (for example, push buttons and a scroll bar), you can form
the name string by adding widget class and name identifiers to the string. For further information about adding class and name identi-
fiers, see
For dxpuzzle, the available class identifiers are:
Puzzle
WorkArea
For dxpuzzle, the available name identifiers are:
Puzzle*workarea Changes such as font and colors for the work area only.
game_level Initial number of squares in the puzzle.
The general resources listed in apply to dxpuzzle.
Files
~/.Xdefaults
/usr/lib/X11/app-defaults/DXpuzzle
See Also
X(1X), dxwm(1X),
DECwindows Desktop Applications Guide
dxpuzzle(1X)