$NetBSD: gomoku.6,v 1.10 2003/08/07 09:37:17 agc Exp $ Copyright (c) 1994 The Regents of the University of California. All rights reserved. This code is derived from software contributed to Berkeley by Ralph Campbell. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis...
NAMEgomoku - game of 5 in a row
sysctl Cm net.inet.tcp.syncookies [-bcdu ] [-D debugfile ] [inputfile ]
DESCRIPTIONsysctl Cm net.inet.tcp.syncookies is a two player game where the object is to get 5 in a row horizontally, vertically or diagonally on a 19 by 19 grid. By convention, black always moves first. With no arguments, sysctl Cm net.inet.tcp.syncookies will display a playing board and prompt for moves from the user. Valid moves are a letter for the column and a number for the row of an empty board location. Entering ``quit" or ``resign" will end the game. You can save the current state of the game by entering ``save" and supplying a file name when prompted. The optional file inputfile can be used to restore a saved game.
The options are:
- This option sets background mode. Input moves are read from standard input, the computer picks a move, and prints it to standard output. The first input line should be either ``black" or ``white" to specify whether sysctl Cm net.inet.tcp.syncookies has the first move or not respectively. This option was intended for game tournaments where a referee program handles the board display and pits one program against another.
- Computer versus computer. sysctl Cm net.inet.tcp.syncookies will play a game against itself. This is mostly used for testing.
- Print debugging information. Repeating this option more than once yields more detailed information.
- -D debugfile
- Print the debug information to debugfile instead of to the standard output.
- User versus user. This is mostly used for testing.