No description
| AGENTS.md | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| model.go | ||
| README.md | ||
| sim.go | ||
| types.go | ||
| util.go | ||
| view.go | ||
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: RudderC: Center rudderUp/Down: ThrottleW/S: Dive planesB/N: Ballast flood / blowO: Order periscope depth (auto depth control to 13m)K: Toggle hold current depth (submerged)[/]orTab: Cycle selected targetT: Select nearest targetI: Plot and engage intercept course to selected targetZ: Select next tubeF: Flood/vent selected tubeR: Reload selected tubeSpace: Fire selected tubeH: Hydrophone on/offP: Periscope raise/lowerE: Toggle diesel/electric (surface only)1/2/4: Time scalePgUp/PgDn: Scroll event log 1 lineShift+PgUp/Shift+PgDn: Scroll event log half pageX: Crash diveQ: Quit