gomoku: The game of Gomoku, a.k.a Five in a row

Description Usage Arguments Value Note Author(s) References Examples

View source: R/gomoku.R

Description

There are two players in this game who play one after the other using black and white stones respectively. The winner is the first player to get an unbroken row of five stones horizontally, vertically, or diagonally.

Usage

1
gomoku(n = 19)

Arguments

n

the number of rows and columns in the board (the default 19 generates the standard board)

Value

NULL

Note

The players should judge the winner by themselves; this function does not do this job (patches are welcome, of course).

Author(s)

Yihui Xie <http://yihui.name>; modified from the code by pklin

References

http://cos.name/cn/topic/104750, http://en.wikipedia.org/wiki/Gomoku

Examples

1

yihui/fun documentation built on Dec. 7, 2018, 11:09 a.m.