Closed pollei closed 2 years ago
https://github.com/pollei/TicTacToe-java/commit/fb70723cd69e35a635648b182115aff290df4e3e Seems to do the job. ttt.html issues NewGame fetch and gets a gameid. Will wait for confirmation testing before cosing the issue.
https://github.com/pollei/TicTacToe-java/commit/64594d64261cf33a58307b84469ae65bfc274bc2 closes it. Gets gameid and able to interact with BaseTicTicToeGame enough to configure it for starting a new game
Update ttt.html using fetch to communicate with the WebGame HttpServlet. WebGame will also need updating. ticTacTom package will likely gain new classes.
POSTing NewGame should return xml that includes a game-id that can later be used to configure and play a game via RESTful style fetches. This issue just covers returning game-id to newly created blank game.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS https://developer.mozilla.org/en-US/docs/Web/API/Request/Request https://developer.mozilla.org/en-US/docs/Web/API/Request https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API https://fetch.spec.whatwg.org/