Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

puzzle(1x) [osf1 man page]

puzzle(1X)																puzzle(1X)

puzzle - 15-puzzle game for X SYNOPSIS
puzzle [-option...] OPTIONS
This option specifies the display to use; see X(1X). This option specifies the size and position of the puzzle window; see X(1X). This option specifies the size of the puzzle in squares. This option specifies the speed in tiles per second for moving tiles around. This option specifies an image file containing the picture to use on the tiles. Try "" This only works on 8-bit pseudo-color screens. This option indicates that the program should create its own colormap for the picture option. DESCRIPTION
Executing puzzle with no arguments plays a 4x4 15-puzzle. The control bar has two boxes in it. Clicking in the left box scrambles the puzzle. Clicking in the right box solves the puzzle. Clicking the middle button anywhere else in the control bar causes puzzle to exit. Clicking in the tiled region moves the empty spot to that location if the region you click in is in the same row or column as the empty slot. BUGS
The picture option should work on a wider variety of screens. COPYRIGHT
Copyright 1988, Don Bennett. SEE ALSO
Don Bennett, HP Labs puzzle(1X)

Check Out this Related Man Page

dxpuzzle(1X)															      dxpuzzle(1X)

       dxpuzzle - DECwindows interface to a puzzle game

       dxpuzzle [ options ]

       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.

       -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


       The dxpuzzle application contains the following menus:

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

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:


       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.


See Also
       X(1X), dxwm(1X),
       DECwindows Desktop Applications Guide

Man Page