No description
Find a file
2026-03-03 13:53:26 -05:00
AGENTS.md initial 2026-03-03 13:53:26 -05:00
go.mod initial 2026-03-03 13:53:26 -05:00
go.sum initial 2026-03-03 13:53:26 -05:00
main.go initial 2026-03-03 13:53:26 -05:00
model.go initial 2026-03-03 13:53:26 -05:00
README.md initial 2026-03-03 13:53:26 -05:00
sim.go initial 2026-03-03 13:53:26 -05:00
types.go initial 2026-03-03 13:53:26 -05:00
util.go initial 2026-03-03 13:53:26 -05:00
view.go initial 2026-03-03 13:53:26 -05:00

subgame

A terminal-first realtime Type VII u-boat simulation prototype.

Current Prototype

This first pass provides:

  • Realtime navigation and movement model
  • Diesel/electric propulsion with fuel and battery simulation
  • Ballast + dive planes depth model with hull stress at unsafe depth
  • Hydrophone contact generation and tracking
  • Contact kinematics (course/speed world movement) and visual confirmation checks
  • Crew-driven TDC solution that improves over time on selected targets
  • Tube management and torpedo firing workflow
  • Intercept course plotting for selected target
  • Event log for watchstanding feedback
  • Bubble Tea TUI command console layout

Run

go run .

Controls

  • Left / Right: Rudder
  • C: Center rudder
  • Up / Down: Throttle
  • W / S: Dive planes
  • B / N: Ballast flood / blow
  • O: Order periscope depth (auto depth control to 13m)
  • K: Toggle hold current depth (submerged)
  • [ / ] or Tab: Cycle selected target
  • T: Select nearest target
  • I: Plot and engage intercept course to selected target
  • Z: Select next tube
  • F: Flood/vent selected tube
  • R: Reload selected tube
  • Space: Fire selected tube
  • H: Hydrophone on/off
  • P: Periscope raise/lower
  • E: Toggle diesel/electric (surface only)
  • 1 / 2 / 4: Time scale
  • PgUp / PgDn: Scroll event log 1 line
  • Shift+PgUp / Shift+PgDn: Scroll event log half page
  • X: Crash dive
  • Q: Quit