laturner42 / captain-sonar

web version of the board game Captain Sonar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Captain Sonar

This is a React + Node.js implementation of the board game Captain Sonar.

Rules

Captain Sonar official rules available here.

This web version follows the rules very closely but has small deviations aiming to:

  • Adapt the game to a web browser
  • Allow the game to be played online, with people not next to you

Developer's Notes

This version was written in less than a week - it's not the cleanest code.

The networking code is extremely chatty. Ideally, the Server would only send "updates" to each Client, but the quickest and easiest way to get the game up and running was to send the entire game structure to every client every time anything changes. ¯\_(ツ)_/¯

Running "locally"

Both the UI and server can be run locally via

npm run dev

in each folder.

The address for the web server is (currently) hardcoded in captain-ui/src/App.js.

About

web version of the board game Captain Sonar


Languages

Language:JavaScript 98.4%Language:HTML 1.3%Language:CSS 0.4%