Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gomoku(6) [netbsd man page]

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
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help!

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)
Discussion started by: tony1leg
1 Replies

2. UNIX for Dummies Questions & Answers

getting input, then outputting it

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)
Discussion started by: signebedi
0 Replies

3. OS X (Apple)

Batch file to move video files and retain sub-directories

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)
Discussion started by: mm0mss
1 Replies

4. Red Hat

Find Computer Location

Hi, there, How to know location of a computer where its IP Address and Computer name is known? tx (5 Replies)
Discussion started by: budiantho_indra
5 Replies

5. UNIX for Dummies Questions & Answers

New bee in the market.

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)
Discussion started by: jimmy666
4 Replies

6. Shell Programming and Scripting

Batch or not if/then

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)
Discussion started by: cmccabe
14 Replies

7. Windows & DOS: Issues & Discussions

Ffmpeg

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)
Discussion started by: junorich
7 Replies