[BACK]Return to dab.6 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / games / dab

Annotation of src/games/dab/dab.6, Revision 1.7

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

CVSweb <webmaster@jp.NetBSD.org>