Kintull / tik_tok_toe

Tiktok live stream gaming
19 stars 2 forks source link

TikTokToe

Playing tik tac toe using comments in TikTok live stream.

Phoenix webserver renders image of the game board. Game master casts their browser with the board in tiktok live steam. Selenium engine parses comments of tiktok live stream. It converts comments in http calls to the webserver.

Game board updates as commands are parsed processed by the webserver.

Two player join the game by writing "join" in the comments. They play by posting commands in comments. Once the game has the winner, board reset automatically after a delay. m

API specification:

Comment body:

```json
{"nickname" => "Roman", "command" => "join"}
{"nickname" => "Roman", "command" => "move top-left"}
```

Commands:

Project is made using Phoenix LiveView.

To start your Phoenix server:

Now you can visit localhost:4000 from your browser.