(linenum→info "unix/slp.c:2238")

bsd-games/2.17/dab/dab.6

    1: .\"     $NetBSD: dab.6,v 1.1.1.1 2003/12/26 17:57:04 christos Exp $
    2: .\"
    3: .\" Copyright (c) 2003 Thomas Klausner.
    4: .\"
    5: .\" Redistribution and use in source and binary forms, with or without
    6: .\" modification, are permitted provided that the following conditions
    7: .\" are met:
    8: .\" 1. Redistributions of source code must retain the above copyright
    9: .\"    notice, this list of conditions and the following disclaimer.
   10: .\" 2. Redistributions in binary form must reproduce the above copyright
   11: .\"    notice, this list of conditions and the following disclaimer in the
   12: .\"    documentation and/or other materials provided with the distribution.
   13: .\" 3. The name of the author may not be used to endorse or promote products
   14: .\"    derived from this software without specific prior written permission.
   15: .\"
   16: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   17: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   18: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   19: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   20: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   21: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   22: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   23: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   24: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   25: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   26: .\"
   27: .Dd December 24, 2003
   28: .Dt DAB 6
   29: .Os
   30: .Sh NAME
   31: .Nm dab
   32: .Nd Dots and Boxes game
   33: .Sh SYNOPSIS
   34: .Nm
   35: .Op Fl aw
   36: .Op Fl n Ar ngames
   37: .Op Fl p Ao Ar c|h Ac Ns Ao Ar c|h Ac
   38: .Op Ar xdim Oo Ar ydim Oc
   39: .Sh DESCRIPTION
   40: .Nm
   41: is a game where each player tries to complete the most
   42: boxes.
   43: A turn consists of putting one border of a box; the player
   44: setting the fourth and final border of a box gets the
   45: point for the box and has another turn.
   46: .Pp
   47: The keys used are the vi keys:
   48: .Ic k
   49: for up,
   50: .Ic j
   51: for down,
   52: .Ic h
   53: for left, and
   54: .Ic l
   55: for right.
   56: To switch between even and odd rows, use one of the following
   57: keys:
   58: .Ic u
   59: .Pq diagonal right up ,
   60: .Ic y
   61: .Pq diagonal left up ,
   62: .Ic b
   63: .Pq diagonal left down ,
   64: .Ic n
   65: .Pq diagonal right down ;
   66: .Aq Ic space
   67: sets a new border,
   68: .Ic CTRL-L
   69: and
   70: .Ic CTRL-R
   71: redraw the screen, and
   72: .Ic q
   73: quits the game.
   74: .Pp
   75: Support options are:
   76: .Bl -tag -width XXnXngamesXXXXX
   77: .It Fl a
   78: Don't use the alternate character set.
   79: .It Fl n Ar ngames
   80: .Ar ngames
   81: games will be played.
   82: .Pq Especially useful in Fl p Ar cc No mode.
   83: .It Fl p Ao Ar c|h Ac Ns Ao Ar c|h Ac
   84: Select which of the two players is a human
   85: or a computer.
   86: The first argument is the first player;
   87: .Ic c
   88: stands for computer and
   89: .Ic h
   90: for human.
   91: .It Fl w 
   92: Wait for a character press between games.
   93: .El
   94: .Pp
   95: .Ar xdim
   96: and
   97: .Ar ydim
   98: define the size of the board in the x and y
   99: dimensions.
  100: .Sh AUTHORS
  101: .An Christos Zoulas
  102: .Aq christos@NetBSD.org
  103: .Sh SEE ALSO
  104: .Rs
  105: .%A Elwyn R. Berlekamp
  106: .%T The Dots and Boxes Game: Sophisticated Child's Play
  107: .%D 2000
  108: .%I A K Peters
  109: .%O http://www.akpeters.com/book.asp?bID=111
  110: .Re
Syntax (Markdown)