TicTacToe
A web service which provides a TicTacToe game. [Programmers: Charlie Chambers, Jay Patel.]
The following operations are supported. For a formal definition, please review the Service Description.
-
getStatus
Given a string of 9 characters representing the state of the board, each of which is one of: TicTacToe.USER_PIECE, TicTacToe.COMP_PIECE, or TicTacToe.EMPT_PIECE, This returns a status line (e.g. 'You lose', or 'You win') to explain the status of the game to the user. -
respondToUserMove
Given a string of 9 characters representing the state of the board, each of which is one of: TicTacToe.USER_PIECE, TicTacToe.COMP_PIECE, or TicTacToe.EMPT_PIECE, and an integer index from 0 to 8, representing the user move from the given board, This returns a similar string with a new 'O' move in place