The reference to the Game instance this AI is playing.
The reference to the Player this AI controls in the Game.
This is called when the game ends, you can clean up your data and dump files here if need be.
True means you won, false means you lost.
The human readable string explaining why you won or lost.
This is called every time the game's state updates, so if you are tracking anything you can update it here.
This is the name you send to the server so your AI will control the player named this string.
A string for the name of your player.
Gets an AI setting passed to the program via the --aiSettings
flag.
If the flag was set it will be returned as a string value, undefined
otherwise.
The key of the setting you wish to get the value for.
A string representing the value set via command line, or undefined if the key was not set.
Invoked after this AI sends some run that is invalid
The human readable error message about why it did something invalid.
This is called every time it is this AI.player's turn to make a move.
A string in Universal Chess Interface (UCI) or Standard Algebraic Notation (SAN) formatting for the move you want to make. If the move is invalid or not properly formatted you will lose the game.
This is called once the game starts and your AI knows its playerID and game. You can initialize your AI here.
Generated using TypeDoc
This is the class to play the Chess game. This is where you should build your AI.