Garvit Galgat

MAY 2021 · BROWSER GAME

Socket.IO Tic-Tac-Toe

Trying out sockets with a game

View source

React · JavaScript · Node.js · Socket.IO · MongoDB

I was curious about sockets and wanted to try them out. I decided to build a tic-tac-toe game with two players connected through their browsers.

Could a move show up on the other screen?

A game to try it with

Two players joined the same game and took turns. When one made a move, it appeared on the other player’s board.

Socket.IO handled the updates between them. The project gave me a way to try sockets by building something I could play.