Class TicTacToe
Defined in: game-sdk.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Example game implementation of Tic Tac Toe.
|
Method Attributes | Method Name and Description |
---|---|
drawBoard(newBoard)
|
|
init(listener)
Initialize the game with the WebChatbotListener.
|
|
moveSquare(cordinate)
|
|
updateAvatar(responseMessage)
Callback to let the game draw the new board from the bot's message command.
|
Class Detail
TicTacToe()
Example game implementation of Tic Tac Toe.
This Game interface can be used to create a new game class.
Method Detail
drawBoard(newBoard)
- Parameters:
- newBoard
init(listener)
Initialize the game with the WebChatbotListener.
- Parameters:
- listener
moveSquare(cordinate)
- Parameters:
- cordinate
updateAvatar(responseMessage)
Callback to let the game draw the new board from the bot's message command.
The board is drawn on the "avatar-game-div" element.
- Parameters:
- responseMessage