-
Notifications
You must be signed in to change notification settings - Fork 0
LUA API ai
Niklas Lindblad edited this page Oct 20, 2015
·
5 revisions
value representing the player id.
value representing the opponent’s id.
a table representing the current board state.
usage: ai.currentBoard.getTileState(x, y)
Get the id of the player owning the tile placed at the given x and y position.
Value representing the size of the board where size = width = height.
usage: ai.currentBoard.placePawnOnTile(owner, x, y)
places a pawn on the specified position, this counts as a move and the rules will be controlled internally. Will return false if the move was illegal, no pawn will be placed in that case.
usage ai.currentBoard.placePawnOnTile(owner, x, y)
Checks if placing a pawn on a specific position would be a legal move.