Sign in

Jhonny Chamoun

Focusing on Node.js and Socket.io

In a previous article, I showcased how to build the interface in HTML and CSS for the game battleship. Then the focus was to build the logic and make the game happen.

I implemented my game with one player in mind and the computer for an opponent.

In this article, I would explain how to use Node and Socket.io in order to transform the game into a multiplayer, where two distant players can play against each other.

If you haven’t read my previous article, or if you need to refresh on the game rules, here is a link for you.

Definitions

Node.js










Jhonny Chamoun

Software Engineer, Problem solving oriented and new technologies enthusiast.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store