com.gamethesky.deptofwar.run

gamethesky.com

Documentation

One mission of Dept of War, published by the player into their own repo. The record stores every strike rather than a score: the sim is deterministic, so re-running the strike log against the same seed, mission and difficulty reproduces the run exactly. Owning the record is the identity proof, and replaying it is the score proof — score and the rest are advisory and never trusted by a leaderboard.

main record

One mission of Dept of War, published by the player into their own repo. The record stores every strike rather than a score: the sim is deterministic, so re-running the strike log against the same seed, mission and difficulty reproduces the run exactly. Owning the record is the identity proof, and replaying it is the score proof — score and the rest are advisory and never trusted by a leaderboard.

Record Key tid Timestamp-based ID

Properties

approval integer Optional

Advisory: the President's approval at the end.

minimum: 0maximum: 100
collateral integer Optional

Advisory: things hit that were not targets (fishermen, tourists, the Coast Guard; in Cuba, cars, buses and our own landing craft; at Hormuz, tankers and fishing dhows; in Venezuela, villages, or buckets poured on the press; in Greenland, villages fenced in or landed on; in Canada, loons; in Panama, cruise ships boarded).

minimum: 0
createdAt string datetime Required

An RFC 3339 formatted timestamp.

difficulty string Optional

How hard the run was. A verifier must replay at the same difficulty. Absent means normal. Each difficulty has its own daily board.

maxLength: 16 bytes
Known values: granny, easy, normal, hard
fires string Required

The whole run as the only input the game takes. Comma-separated `<dtick>.<w>.<x>.<y>` entries: dtick is 60 Hz ticks since the previous entry; w is the mission's first button (Hellfire; on the deck gun the 5-inch gun; in the minefield a sweep; on the pipeline laying the next piece; in Oil Panic walking to the spot at x; in Buy It driving toward x, y; in the airdrop a jump; in Canada sliding the cannon to x; in Panama a hop toward x, y) as 0, its second (Tomahawk; the Phalanx; the deck gun; an airstrike; calling the truck; slow fencing on or off; pulling the cord; a tariff; paying the toll) as 1, and 2 to resign (the run ends on that entry); x and y are the aim point on the water in tenths of a unit. Only strikes the sim accepted are logged; a verifier refuses a log the sim would not have accepted. Example: `90.0.812.455,40.1.600.300`.

maxLength: 200000 bytes
landed integer Optional

Advisory: drug boats that reached the coast; in Cuba, landing craft that made the beach; on the deck gun, hits the ship took; in the minefield, tankers that got through; on the pipeline, tankers filled; in Oil Panic, buckets delivered; in Buy It, deeds; in the airdrop, troopers down safe; in Canada, waves cleared; in Panama, canals taken (all five locks).

minimum: 0
mission string Required

Which level: boats is Operation Boat Trip in the Florida Straits, cuba is Operation Cigar Chomp at Havana, hormuz and mines are Operation Tight Squeeze's deck gun and minefield in the Strait of Hormuz, venezuela and oilpanic are Operation Oil Change's pipeline and Oil Panic, greenland and airdrop are Operation Frozen Asset's Buy It and airdrop, canada is Operation 51st State (Tariff Invaders), panama is Operation Canal Toll (Frogger).

maxLength: 32 bytes
Known values: boats, cuba, hormuz, mines, venezuela, oilpanic, greenland, airdrop, canada, panama
score integer Required

Advisory: the final score.

minimum: 0
seed string Required

Which orders: a date (YYYY-MM-DD, local to the player) for the day's orders, or any other string for a training exercise. The sim seeds from the FNV-1a hash of this string.

maxLength: 64 bytes
simVersion integer Required

Which rules produced these strikes. A verifier must replay under the matching version or refuse the run.

minimum: 1
struck integer Optional

Advisory: hostile targets destroyed (drug boats; in Cuba, batteries and tanks; at Hormuz, boats, launchers, radars, missiles, drones, mines and minelayers; in Venezuela, militia, or for Oil Panic the drops of oil saved; in Greenland, landmarks claimed, or troopers on a landing zone; in Canada, exports, Mounties and geese tariffed; in Panama, flags planted in the locks).

minimum: 0
ticks integer Optional

Advisory: the tick the run ended.

minimum: 1
why string Optional

Advisory: how it ended — the clock ran out, the President fired you, Congress held a hearing, or you resigned.

maxLength: 16 bytes
Known values: survived, fired, hearing, resigned
View raw schema
{
  "description": "One mission of Dept of War, published by the player into their own repo. The record stores every strike rather than a score: the sim is deterministic, so re-running the strike log against the same seed, mission and difficulty reproduces the run exactly. Owning the record is the identity proof, and replaying it is the score proof — score and the rest are advisory and never trusted by a leaderboard.",
  "key": "tid",
  "record": {
    "properties": {
      "approval": {
        "description": "Advisory: the President's approval at the end.",
        "maximum": 100,
        "minimum": 0,
        "type": "integer"
      },
      "collateral": {
        "description": "Advisory: things hit that were not targets (fishermen, tourists, the Coast Guard; in Cuba, cars, buses and our own landing craft; at Hormuz, tankers and fishing dhows; in Venezuela, villages, or buckets poured on the press; in Greenland, villages fenced in or landed on; in Canada, loons; in Panama, cruise ships boarded).",
        "minimum": 0,
        "type": "integer"
      },
      "createdAt": {
        "format": "datetime",
        "type": "string"
      },
      "difficulty": {
        "description": "How hard the run was. A verifier must replay at the same difficulty. Absent means normal. Each difficulty has its own daily board.",
        "knownValues": [
          "granny",
          "easy",
          "normal",
          "hard"
        ],
        "maxLength": 16,
        "type": "string"
      },
      "fires": {
        "description": "The whole run as the only input the game takes. Comma-separated `<dtick>.<w>.<x>.<y>` entries: dtick is 60 Hz ticks since the previous entry; w is the mission's first button (Hellfire; on the deck gun the 5-inch gun; in the minefield a sweep; on the pipeline laying the next piece; in Oil Panic walking to the spot at x; in Buy It driving toward x, y; in the airdrop a jump; in Canada sliding the cannon to x; in Panama a hop toward x, y) as 0, its second (Tomahawk; the Phalanx; the deck gun; an airstrike; calling the truck; slow fencing on or off; pulling the cord; a tariff; paying the toll) as 1, and 2 to resign (the run ends on that entry); x and y are the aim point on the water in tenths of a unit. Only strikes the sim accepted are logged; a verifier refuses a log the sim would not have accepted. Example: `90.0.812.455,40.1.600.300`.",
        "maxLength": 200000,
        "type": "string"
      },
      "landed": {
        "description": "Advisory: drug boats that reached the coast; in Cuba, landing craft that made the beach; on the deck gun, hits the ship took; in the minefield, tankers that got through; on the pipeline, tankers filled; in Oil Panic, buckets delivered; in Buy It, deeds; in the airdrop, troopers down safe; in Canada, waves cleared; in Panama, canals taken (all five locks).",
        "minimum": 0,
        "type": "integer"
      },
      "mission": {
        "description": "Which level: boats is Operation Boat Trip in the Florida Straits, cuba is Operation Cigar Chomp at Havana, hormuz and mines are Operation Tight Squeeze's deck gun and minefield in the Strait of Hormuz, venezuela and oilpanic are Operation Oil Change's pipeline and Oil Panic, greenland and airdrop are Operation Frozen Asset's Buy It and airdrop, canada is Operation 51st State (Tariff Invaders), panama is Operation Canal Toll (Frogger).",
        "knownValues": [
          "boats",
          "cuba",
          "hormuz",
          "mines",
          "venezuela",
          "oilpanic",
          "greenland",
          "airdrop",
          "canada",
          "panama"
        ],
        "maxLength": 32,
        "type": "string"
      },
      "score": {
        "description": "Advisory: the final score.",
        "minimum": 0,
        "type": "integer"
      },
      "seed": {
        "description": "Which orders: a date (YYYY-MM-DD, local to the player) for the day's orders, or any other string for a training exercise. The sim seeds from the FNV-1a hash of this string.",
        "maxLength": 64,
        "type": "string"
      },
      "simVersion": {
        "description": "Which rules produced these strikes. A verifier must replay under the matching version or refuse the run.",
        "minimum": 1,
        "type": "integer"
      },
      "struck": {
        "description": "Advisory: hostile targets destroyed (drug boats; in Cuba, batteries and tanks; at Hormuz, boats, launchers, radars, missiles, drones, mines and minelayers; in Venezuela, militia, or for Oil Panic the drops of oil saved; in Greenland, landmarks claimed, or troopers on a landing zone; in Canada, exports, Mounties and geese tariffed; in Panama, flags planted in the locks).",
        "minimum": 0,
        "type": "integer"
      },
      "ticks": {
        "description": "Advisory: the tick the run ended.",
        "minimum": 1,
        "type": "integer"
      },
      "why": {
        "description": "Advisory: how it ended — the clock ran out, the President fired you, Congress held a hearing, or you resigned.",
        "knownValues": [
          "survived",
          "fired",
          "hearing",
          "resigned"
        ],
        "maxLength": 16,
        "type": "string"
      }
    },
    "required": [
      "seed",
      "simVersion",
      "mission",
      "fires",
      "score",
      "createdAt"
    ],
    "type": "object"
  },
  "type": "record"
}

Lexicon Garden

@