Chapter 4. The AI Player

Starting with version 0.7.0, Gnocatan comes with gnocatanai, a computer player implementation. This AI player isn't too bad at the moment, but not finished yet. Most notably, it cannot take part in domenstic trade yet.

gnocatanai is a terminal application without GUI. Its command line options are:

Table 4-1. gnocatanai options

OptionArgumentsDescription
-sservernameConnect to servername
-pportConnect to port port
-nnameSet the player name. If this option is absent, a random name will be choosen.
-aplayertypeChoose the type of AI player. Currently, there is only one type greedy, which is obviously also the default.
-tmillisecondsSet time to wait between turns.
-c Stop the computer player from giving comments.

However, most of the time you won't start gnocatanai manually. Both game servers offer ways to start a number of AI players.