GOMOKU(6) BSD Games Manual GOMOKU(6)NAME
gomoku -- game of 5 in a row
SYNOPSIS
gomoku [-bcdu] [-D debugfile] [savefile]
DESCRIPTION
gomoku 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.
The options are:
-b Run in batch mode. (See below.)
-c Computer versus computer. gomoku will play a game against itself. This is mostly used for testing.
-d 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.
-u User versus user. (Play against yourself.) This is mostly used for testing.
savefile
Load a previously saved game from savefile.
With no arguments, gomoku starts a fresh user vs. computer game.
Moves may be entered by selecting the desired board location and pressing the space or enter key. The cursor may be moved using the arrow
keys or vi(1) motion keys hjklyubn. These also may be familiar from rogue(6) and hack(6). To quit, type 'Q', and to save the game, type 'S'
and supply a file name when prompted.
Batch mode
Batch mode was intended for game tournaments where a referee program handles the board display and pits one program against another. In this
mode, gomoku reads moves from standard input and writes its responses to standard output. The first line of input should be either ``black''
or ``white'' to specify whether gomoku has the first move or not respectively.
AUTHORS
Ralph Campbell
ACKNOWLEDGEMENTS
The board display routines were based on the goref program written by Peter Langston. The user interface was based on Eric S. Raymond's
interface for bs.
BSD March 28, 2010 BSD
Check Out this Related Man Page
GOMOKU(6) BSD Games Manual GOMOKU(6)NAME
gomoku -- game of 5 in a row
SYNOPSIS
gomoku [-bcdu] [-D debugfile] [inputfile]
DESCRIPTION
gomoku 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, gomoku will display a playing board and prompt for moves from the user. Valid moves are a let-
ter 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:
-b 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 gomoku 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.
-c Computer versus computer. gomoku will play a game against itself. This is mostly used for testing.
-d 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.
-u User versus user. This is mostly used for testing.
AUTHOR
Ralph Campbell
ACKNOWLEDGEMENTS
The board display routines were based on the goref program written by Peter Langston.
BSD August 4, 1994 BSD
Hi everyone!
I am new to the board and new to Unix. Getting used to it but still have alot of trouble with it.
I need to write a program that generates factorial of a number by input of the user. It should be an input between 1 and 10 and check to see if it is within a range. I should also... (1 Reply)
Hi!
I am a newbie to Unix. I was writing a little game program for fun when thought of an idea to allow data to be saved. I knew to take all of the Predefined variables and put them into a separate file, then including the file in the program. But I am having trouble making it so that the user... (0 Replies)
I have just purchased my first ever Apple computer - and am therefore new to UNIX also.
I would like to create a simple "batch file" (apologies if this is the wrong terminology) to do the following:
When I plug my camera into the MAC it automatically downloads photos and videos into a new... (1 Reply)
Hi everyone ,
I'm a fresh graduate in computer science ,looking to make career in the field of unix.Being fresher i'm bit frustrated since i havnt got any good opurtunities or a break into the field:mad:.I'm reading books on unix and practicing the commands on ubuntu from past 7 months and still... (4 Replies)
I am having trouble modifying a .sh that allows the user to run different command based of an input. So based on the user input of Y or N a different command is run. Thank you :).
#!/bin/bash
while true
do
printf "Is this a batch : " ; read id
&& break
If "$id" = Y, Then... (14 Replies)
Hello everyone, I am new here so forgive me if this is in the wrong place. I am new to shell script and am trying to write a script to use with a program called ffmpeg. Would this be something I could get help with here?
set /p VIDEO=Enter full name of video file on desktop:
md... (7 Replies)