Skip to content

About

Digital twin battle simulation (Godot + C#), fork of jVarteva17/godot-twin with Git LFS map data

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Twin — digital twin of a military operating environment

A deterministic 2.5D simulation of terrain and agents, with a Godot 4 client that shows it as a top-down map. It started as a walking skeleton (one feature built end to end with the team's workflow); features are now added ticket by ticket from docs/backlog.

Quick start

Prerequisites: .NET SDK 10 (pinned in global.json), Git with Git LFS, and — only for the visual client — Godot 4.7.2 .NET edition (where to put it: GODOT_README.md).

git lfs install
./dev setup          # Windows: dev setup

./dev setup checks prerequisites, builds everything and runs all tests. The simulation and its tests need only the .NET SDK, not Godot. Docker is needed only for ./dev docker-test and the map preprocessing (./dev prep).

Optional, for team members with access: clone the team's shared knowledge, pvarki/matrix-docs (not public yet), and install its agent skills (setup in AGENTS.md, reasons in ADR 0012). Nothing in the build depends on it.

Run the visual client: open src/Twin.Client/project.godot in Godot 4.7.2 .NET and press Play. Left click selects a unit, right click orders it to move, the mouse wheel zooms.

Run the simulation without graphics: ./dev run -- --seconds 60. Run a scenario from scenarios/ and replay its event log: ./dev replay st1 (see docs/smoke-test-1.md); add --godot to watch it on the map in the Godot client.

Repository map

Path What
src/Twin.Sim Simulation core. Plain .NET, deterministic, no engine dependency.
src/Twin.Client Godot client: rendering, input, UI. No game rules.
src/Twin.Headless Console runner for smoke tests, batch runs, later a server.
tests/Twin.Testing Scenario kit: the language for behaviour tests.
tests/Twin.Scenarios.Tests Behaviour tests of agents ("unit reaches X, Y, Z").
tests/Twin.Sim.Tests Unit tests of pure logic (terrain, math, random).
tests/Twin.Architecture.Tests Architecture rules as tests.
tests/Twin.Acceptance.Tests Acceptance tests on real, preprocessed map data (Smoke test I).
scenarios/ Scenario files and preprocessed map areas.
prep/ Map preprocessing toolbox: Python + GDAL in Docker.
docker/ Container for running the core tests (./dev docker-test).
tools/dev.cs, ./dev Team command line.
.claude/ AI harness: hooks, skills, reviewer subagent.
docs/adr/ Architecture decision records: what we decided and why.
docs/backlog/ Tickets: story, acceptance criteria, decisions and status of each feature.

How we work

Read, in this order: AGENTS.md (rules and commands, ten minutes), docs/workflow.md (the TDD process and roles), docs/testing.md (writing scenario tests), then skim docs/adr.

Status

Each ticket in docs/backlog starts with a Status line; that line, not this README, says what is built and what is next.

About

Digital twin battle simulation (Godot + C#), fork of jVarteva17/godot-twin with Git LFS map data

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages