puzzle(1X) puzzle(1X)NAME puzzle - displays a puzzle game of numbered tiles SYNOPSIS puzzle [-display display] [-geometry geometry] [-size size] [-speed tiles-per-second] [-picture file] [-colormap] [- fn f2font] DESCRIPTION puzzle produces a puzzle game whose object is to arrange numbered tiles in a specific order. The window has two areas: one area contains a control bar with two boxes and the second area contains the tiles. By default, 15 tiles are arranged in four columns and rows with one empty space. To start a new game, click in the left box of the control bar to scramble the tiles. Then move the tiles so they are in order. Pressing the LEFT ARROW key (or the middle button of a three-button mouse) while the pointer is in the control bar, but not in the left or right box, causes puzzle to exit. Clicking a tile region moves the empty space to that loca- tion if the tile is in the same row or column as the empty space. The tiles in that row or column shift as needed, so that the previously empty space is occupied. Clicking in the right box of the control bar solves the puzzle by order- ing the tiles by number. Options The puzzle command accepts these options: -colormap Causes puzzle to create its own colormap for the -picture option. -display display Specifies the display to use. See X(1X) for de- tails. -fn font Specifies the font that is used to label the tiles. -geometry geometry Specifies the size and position of the puzzle win- dow. The geometry argument is given in terms of two numbers separated by an x. The first number speci- fies the width of the bitmap in pixels; the second number specifies the height. See X(1X) for details. -picture file Specifies an image file containing a picture to su- November, 1990 1
puzzle(1X) puzzle(1X)perimpose on the tiles. This option only works on an 8-bit pseudocolor display. -size size Specifies the size of the puzzle in tiles. -speed tiles-per-second Specifies the speed in tiles per second for moving tiles around. LIMITATIONS The -picture option should work on a wider variety of displays. NOTES Copyright 1988, Don Bennett. Author: Don Bennett, Hewlett-Packard Labs SEE ALSO X(1X) 2 November, 1990