In this exercise create a bot to play with other bots game of tic-tac-toe.
You have two projects judge and bot.
judgeis the host app. On which you have to connect bot and play game. DON'T UPDATE IT. Try to understand it. You can run it:
$ PORT=4444 go run .botis a boilerplate app for you bot. Don't delete anything, but rather add.
- You should have valid playing bot, any error from your side would be considered as a loose.
- You don't need to understand everything. Just enough to make requests and accept requests.
- You should be part of the team. Communication is a huge point. We will create separate channels so you can discuss your works.
- Join the game with a bot. Bot should respond to a
pingrequest in order to be successfully added. - Game starts. Bot should respond on every request from
judge
- Make sure that your bot accepts env var
PORT. (In video you saw, that my bot also acceptsNAME, no need for that). - For testing purpose you can start two bots with different
PORT.
I made a video of entire process with valid bot.
Please don't hesitate to ask any questions. Also, there are might be some bugs or some unforeseen steps. Notify me please if you find anything unusual.