pollei / TicTacToe-java

TicTacToe game for SFCC CS141
GNU General Public License v3.0
0 stars 0 forks source link

WebGame can play a game #7

Closed pollei closed 2 years ago

pollei commented 2 years ago

With game-id constructed url, have fetch use GET/POST to submit moves and get moves from nemesis. nemesis will be robot: Randy, Bob, or Emily. However make the exchange flexible enough so that PvP could later be added. depends on #5 and #6

After game a DELETE fetch could be used to destroy the game in the servlet.

pollei commented 2 years ago

https://github.com/pollei/TicTacToe-java/commit/64594d64261cf33a58307b84469ae65bfc274bc2 should also do first computer move if it goes first. Minor progress towards playing a game

pollei commented 2 years ago

https://github.com/pollei/TicTacToe-java/commit/8926592e2d5c5bb52c42ab0e79e713b4c5b5061c does the core of this, so close ticket It doesn't handle ending game properly so added issue https://github.com/pollei/TicTacToe-java/issues/8 It also doesn't make the exchange flexible enough so that PvP can be supported. Add project TTT WebGame can do PvP