Battleship game
summary
Builds a playable two‑player Battleship clone with a React front end, Express/socket.io server and a simple AI that picks random unknown cells or targets wrecked-ship neighbors. Board is 10x10 and ships use sizes 5/4/3/3/2. Code places ships randomly, checks hits/kills, marks surrounding misses, caches game state, and emits fire/result events; the demo runs locally but uses single‑instance AI rather than true matchmaking. Notes include adding board hashing to prevent cheating and basic statistical AI learning.
AI-written summary · about
chapters (10)
- 0:00intro
- 0:22preamble
- 0:33brief
- 1:33rules
- 1:55ships
- 2:18interaction
- 2:59cellstatus
- 3:38making the game
- 27:25result
- 30:38thank you
related talks
59mWorkshop - Test Drive a Browser Game With JavaScript
40mMultiplayer Game Dev in Web: how to build your own game in less than 30 minutes
05mSocket.IO in a Chess Realtime Multiplayer Web Application
26mJavaScript Minigames
08mDesigning Boardgames and How Tech (and React) Can Help
30mMaking Games in React
01h 37mShall We Play A Game
18mdotJS 2012 - Christian Amor Kvalheim
