View Code? Open in Web Editor
NEW
Web-based clone of the classic game 'Battleship' in collaboration with @SimHoZebs
Home Page: https://battleship-client-six.vercel.app
License: MIT License
TypeScript 83.51%
JavaScript 5.22%
SCSS 11.27%
battleship's Introduction
battleship's People
Contributors
Watchers
battleship's Issues
Vercel does not support socket.io connections, as their edge functions last up to 30 seconds in the free tier.
Current frontend code has the player data, and even ship data split in multiple states. We can centralize them into objects to have clearer structure.
Example:
const player = {
board: []
shipArray: [
{
length: shipLength.Destroyer,
placed: true