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.
gomoku(n = 19)
the number of rows and columns in the board (the default 19 generates the standard board)
The players should judge the winner by themselves; this function does not do this job (patches are welcome, of course).
Yihui Xie <http://yihui.name>; modified from the code by pklin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.