Skip to content

jvcol/gomoku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gomoku

Build Status

Robots

  • Accept command-line arguments:

./robot board-width board-height [-first]

The last -first is optional, which indicates if the robot is Black. The black should output a move right after its launch, otherwise it should read the opponent's move from stdin.

  • Output its moves to the stdout, one move a line.

  • Reading opponent's move from stdin, one move a line.

I/O format

A move is represented by an upper-case letter indicates the X axis followed with a number indicates the Y axis.

e.g. A0 means the upper left point on the board.

  • Remember to put a newline after every move.

  • Do not output anything other than your moves to stdin or your opponent will win.

  • stderr is not used, you can print debugging information whenever you like to it.

API for building robot

Example robot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 98.3%
  • Makefile 1.7%