~/talk

Battleship game

Talkat Conf42 JavaScript 2023 · on Thursday, 2023-11-16· [creative-coding, javascript]
linkedin:vivalaakam
slides:none on file

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

  1. 0:00intro
  2. 0:22preamble
  3. 0:33brief
  4. 1:33rules
  5. 1:55ships
  6. 2:18interaction
  7. 2:59cellstatus
  8. 3:38making the game
  9. 27:25result
  10. 30:38thank you
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.