# DrussGT — vendored decompiled source ## What this is `src/` is **DECOMPILED Java source**, recovered by a Java decompiler (CFR/Procyon-class output) from the compiled `DrussGT.jar` competitive Robocode bot by "jk" (DrussGT 2.0, the Dr. Bloodmoney/G2000 lineage). **It is NOT the original author's source.** No debug symbols, comments, or original method names survive; identifiers are decompiler-reconstructed and may be renamed, reordered, or inlined. Do not treat it as a reference implementation for style, and do not "fix up" it as if it were authored code. ## Where it came from - Recovered into `/tmp/drussgt/src/` (also present byte-identically as `/tmp/portaudit/src/` and `/tmp/DrussGT_extracted/`; a near-copy with one patched file lives at `/tmp/dbg_src/`). - Copied into this repo at `tools/robocode_shim/vendor/drussgt/src/` so that a rebuild never depends on `/tmp`, which is wiped on reboot. - `MANIFEST.sha256` records the exact contents; verify with `sha256sum -c MANIFEST.sha256` from this directory. `src/` contains 67 files: **22 `.java`** files plus the decompiler-emitted `.class` files that were left alongside them. The `.class` files are gitignored (root `.gitignore` rule `*.class`) and are *not* the build input — `DrussGT.jar` supplies them. ## Packages contained | Package | Files | |---|---| | `jk.mega` | `DrussGT.java` (main bot), `BulletPowerPredictor`, `DataToGun`, `BufferManager`, `EnemyMoves`, `Insulter` | | `jk.mega.dGun` | `DrussGunDC`, `GFRange`, `Indice`, `PreciseMinMaxGFs` | | `jk.mega.dMove` | `DrussMoveGT`, `MovePredictor`, `BulletTracker`, `EnemyWave`, `PlaceTime`, `PredictionStatus` | | `jk.melee` | `MeleeRadar` | | `jk.precise` + `jk.precise.util` | `EnergyDomeWorker`, `PreciseUtils`, `PreciseWave` | | `jk.tree` | `KDTree` | | `jk.math` | `FastTrig` | ## Provenance and licensing caveat DrussGT is third-party, GPL-licensed competitive-bot code by an external author. It is vendored here **for interoperability/port analysis only**. The upstream `DrussGT.jar` itself is deliberately *not* committed to this repo (see `tools/robocode_shim/.gitignore`, rule `*.jar`) — it must be obtained separately from the upstream distribution and passed via the `DRUSSGT_JAR` environment variable. Redistributing this decompiled source, like the original, carries the same GPL obligation as the upstream bot. Check the upstream terms before publishing anything derived from it. ## Relationship to `DrussGT.jar` and `compile_drussgt.sh` `compile_drussgt.sh` rebuilds DrussGT from these sources against the genuine Robocode API. Its defaults are all in-repo: - `ROBOCODE_JAR` -> `vendor/robocode.jar` - `DRUSSGT_SRC` -> `vendor/drussgt/src` (this directory's `src/`) - `DRUSSGT_JAR` -> `vendor/drussgt/DrussGT.jar` (must exist locally; not tracked) - output -> `out/drussgt/` Two files are deliberately excluded from the javac invocation: `jk/mega/dGun/GFRange.java` and `jk/mega/dGun/Indice.java`. The same two classes are also declared inline at the bottom of `DrussGunDC.java`, so compiling all 22 files fails with `duplicate class`. The jar already ships them, so the build lets the jar supply those two plus the six genuinely-unsourced classes (`JKDCUtils`, `NormalDistribution`, `StoreScan`, `DCRobotState`, `DCWave`, `Scan`). Run it with: ROBOCODE_JAR=vendor/robocode.jar ./compile_drussgt.sh