Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/man-games-sokoban-b1-juggle-pattern/games.orig

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH GAMES 1
.SH NAME
mahjongg, sokoban, sudoku \- time wasters
.SH SYNOPSIS
.B games/juggle
[
.B -d
.I delay
] [
.B -h
.I hands
] [
.I start
]
.I pattern
.br
.B games/mahjongg
[
.B -c
] [
.B -b
.I background
] [
.B -t 
.I tileset
] [
.B -l
.I layout
]
.br
.B games/sokoban
[
.I level
]
.br
.B games/sudoku
.SH DESCRIPTION
There are a few games in
.BR /bin/games :
.TP
.B juggle
Display the juggling
.I pattern
using the optional initial
.I start
pattern.
The number of hands involved (default 2) can be specified with
.BR -h ,
and
.I delay
can be used to speed up or slow down the action (default is 20).
Try the pattern 333333441333333 or 333353505151512333333
(see
.IR http://seehuhn.de/jong/theory.html ).
.TP
.B mahjongg
Remove all tiles
from the board. Click on tiles with the same face that
are not blocked by others. A blocked tile is one that is partially or
fully covered on top or has neighbouring tiles to the left and right.
The game finishes when either all tiles are gone or there are no
more moves left. The arguments are for changing background
.RB (-b),
tile
.RB (-t)
and layout
.RB (-l)
images;
.RB -c
selects a true-color buffer image, use with
drawterm or in case selecting a tile obscures it completely.
The 
.LR N
key will generate a new level, 
.LR R
restarts the current one. 
.LR Q
and 
.LR Del
quit, 
.LR H
gives a hint, either trying to match the currently selected tile, or if no tile is
selected finding out the first available tile.
.TP
.B sokoban
Guide Glenda through a room full of walls, pebbles and holes to put
the pebbles in.  Your goal is to arrange all pebbles into holes by
pushing them around, but you can only push a pebble if there is no
wall or another pebble blocking the way.
Arrow keys move Glenda up-down-left-right.  
.LR N 
and 
.LR P 
keys switch between
the next and previous levels, 
.LR R
restarts the current level.  
.LR Del 
and
.LR Q
quit.  The right mouse button invokes a menu to restart the current level or load different
level sets.  The middle mouse button lets you change between levels. 
.I Sokoban
accepts a level file as its argument.
.TP
.B sudoku
.I Sudoku
is a puzzle game from Japan.  The goal of the game is to
fill the numbers 1 to 9 in all squares of the 9x9 board following a
few simple rules: no digit should repeat on the same row and column,
and no digit should repeat in the same 3x3 boxes outlined with thicker
lines.  The board is initially filled with a partial solution which
can be used for inferring digits for the empty squares.  The top row
of the board contains the digits 1 through 9, clicking on one of those
digits selects that number for placement on the board, clicking it
again will deselect that digit.  Clicking on an empty square will then
affix the square with the selected digit or, if no digit is selected
empty the square.
.IP
The left mouse button presents a menu with the following options:
.RS \w'\fLfireworksXX'u
.TP \w'\fLOffsetXX'u
.B New
autogenerate a new, random board
.TP
.B Check
mark in red any digits not placed according to the rules
.TP
.B Solve
present the board's solution
.TP
.B Clear
clear the board to its starting (or last loaded) state
.TP
.B Save
save the current board to
.I /tmp/sudoku-save
.TP
.B Load
load the last saved board from
.I /tmp/sudoku-save
.TP
.B Print
print the current board and solution in a format
suitable for addition in the sudoku library to
.I /tmp/sudoku-board
.TP
.B Offline
pretty-print the board for off-line solving to
.I /tmp/sudoku-print
.TP
.B Exit
quit the game
.RE
.IP
The middle mouse button presents a list of sudoku boards from
.I /sys/games/lib/sudoku/boards
with varying degree of difficulty.
.IP
Pressing the
.B Q
key quits sudoku
.SH FILES
.TP
.B /sys/games/lib/mahjongg/*
image sprites, levels and backgrounds used by
.I mahjongg
.TP
.B /sys/games/lib/sokoban/*
image sprites and levels used by
.I sokoban
.TP
.B /sys/games/lib/sudoku/*
images and boards used by
.I sudoku
.SH SOURCE
.B /sys/src/games

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.