1GOMOKU(6) BSD Games Manual GOMOKU(6)
2
4 gomoku — game of 5 in a row
5
7 gomoku [-bcdu] [-D debugfile] [inputfile]
8
10 gomoku is a two player game where the object is to get 5 in a row hori‐
11 zontally, vertically or diagonally on a 19 by 19 grid. By convention,
12 black always moves first. With no arguments, gomoku will display a play‐
13 ing board and prompt for moves from the user. Valid moves are a letter
14 for the column and a number for the row of an empty board location.
15 Entering ``quit" or ``resign" will end the game. You can save the cur‐
16 rent state of the game by entering ``save" and supplying a file name when
17 prompted. The optional file inputfile can be used to restore a saved
18 game.
19
20 The options are:
21
22 -b This option sets background mode. Input moves are read from
23 standard input, the computer picks a move, and prints it to stan‐
24 dard output. The first input line should be either ``black" or
25 ``white" to specify whether gomoku has the first move or not
26 respectively. This option was intended for game tournaments
27 where a referee program handles the board display and pits one
28 program against another.
29
30 -c Computer versus computer. gomoku will play a game against
31 itself. This is mostly used for testing.
32
33 -d Print debugging information. Repeating this option more than
34 once yields more detailed information.
35
36 -D debugfile
37 Print the debug information to debugfile instead of to the stan‐
38 dard output.
39
40 -u User versus user. This is mostly used for testing.
41
43 Ralph Campbell
44
46 The board display routines were based on the goref program written by
47 Peter Langston.
48
49BSD August 4, 1994 BSD