Skip to content
Alejandro U. Alvarez edited this page Apr 11, 2017 · 11 revisions

Writing a compatible player

In order to write a player that can be executed by uabc, you will need to:

  1. Listen for some input on STDIN (e.g. the server starting the game, the opponent making a move)
  2. Record the state of that move (so you have a representation of the board)
  3. Respond with output on STDOUT (e.g. your move)

Listening

The uabc client will send you one of the following:

Command Description
init
move
opponent

Responding

...

Clone this wiki locally