Class Index | File Index

Classes


Class TicTacToe


Defined in: game-sdk.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Example game implementation of Tic Tac Toe.
Method Summary
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

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 17 2017 14:11:31 GMT-0400 (EDT)