1 .\" $NetBSD: gomoku.6,v 1.15 2010/03/29 04:00:03 dholland Exp $
4 .\" The Regents of the University of California. All rights reserved.
6 .\" This code is derived from software contributed to Berkeley by
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
17 .\" 3. Neither the name of the University nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .\" @(#)gomoku.6 8.2 (Berkeley) 8/4/94
40 .Nd game of 5 in a row
48 is a two player game where the object is to get 5 in a row horizontally,
49 vertically or diagonally on a 19 by 19 grid.
50 By convention, black always moves first.
58 Computer versus computer.
60 will play a game against itself.
61 This is mostly used for testing.
63 Print debugging information.
64 Repeating this option more than once yields more detailed information.
66 Print the debug information to
68 instead of to the standard output.
71 .Pq Play against yourself.
72 This is mostly used for testing.
74 Load a previously saved game from
80 starts a fresh user vs. computer game.
82 Moves may be entered by selecting the desired board location and
83 pressing the space or enter key.
84 The cursor may be moved using the arrow keys or
88 These also may be familiar from
92 .\" Valid moves are a letter for the column and a number for the row
93 .\" of an empty board location.
96 and to save the game, type
98 and supply a file name when prompted.
100 Batch mode was intended for game tournaments where a referee program
101 handles the board display and pits one program against another.
104 reads moves from standard input and writes its responses to standard
106 The first line of input should be either
112 has the first move or not respectively.
116 The board display routines were based on the
118 program written by Peter Langston.
119 The user interface was based on Eric S. Raymond's interface for
120 .\" change this when/if we import openbsd's bs(6)