C:\GRIFFIN\PROJECTS\GAMES\CIVIC-SIMS>

[@] MAP
###C############
#...........$..#
#.&&..&&...&&..P
#......@.......#
#...*......&&..#
#..............#
######H#########
GAMES/CIVIC-SIMS

Doors are hotkeys. Or click the screen and walk with the arrow keys.

Civic Sims

Status
Simulation prototype
Stack
Simulation · ArcGIS · C#/.NET · GIS · Routing
  1. #1 Griffin Hale

    An ArcGIS Pro add-in that runs three city simulations, road closures, station coverage and a river flood, on real Cedar Rapids map data.

    At a glance

    • Outcome: An ArcGIS Pro add-in with three turn-based city simulations on real public map data: road and bridge closures, fire and EMS station coverage, and a river flood response. Cedar Rapids, Iowa is the test city.
    • Status: Simulation prototype, started October 5, 2026. All three sims run in ArcGIS Pro 3.7 on Cedar Rapids data, and every action works in each. Full play-throughs of each sim come next.
    • Role: Solo. Defined the sims, rules, data sources and decision records; reviewed AI-assisted implementation.
    • Stack & libraries: C#, .NET 8, ArcGIS Pro SDK 3.6 (the add-in builds against the 3.6 SDK and runs in Pro 3.7), NetTopologySuite, ProjNet, SQLite/GeoPackage, xUnit; OpenStreetMap, FEMA flood maps, TIGER/Line, ACS, USGS and NCES data.
    • Validation: Engine tests check drive times against small hand-worked road networks and a brute-force search, and check each sim’s rules and scores. Importer tests run offline on a downtown Cedar Rapids extract. Drive times match Esri’s Network Analyst within 30 seconds in 47 of 50 tracts.
  2. #2 Griffin Hale

    • Source: Private, under KnownBetter Studios’ proprietary license.
    • Limitations: Drive times assume free-flowing traffic with no turns or signals. Each tract’s people sit at one point. Costs, times and score weights are first guesses.
  3. #3 Griffin Hale

    Civic Sims asks three questions of a real city’s map: what happens when a bridge closes, when a fire station moves, and when a river floods. Each question is a turn-based simulation inside ArcGIS Pro, the Windows mapping software city analysts use. You act, press Tick, and the map redraws to show the result.

    ArcGIS Pro with the map tab cedar-rapids network-disruption at tick 14, tracts in blue and grey. The Civic Sims pane shows a Verbs (queued for the next tick) section with a Pick on map button and the picks Road 12373 Katz Drive, Junction 2163 and Station 10 Marion Fire Department Station 2 (Fire), above the buttons Close picked road, Reopen picked road, Use picked station as crew source, Move crew to picked station and Stage crew at picked junction. The status reads Tick 14 of 36, 01:10:00.
    The add-in's pane: pick a road, station or junction on the map, then queue an action for the next tick. Captured before the shared style table, so the map colors are placeholders.
  4. #4 Griffin Hale

    In network disruption, each tick is five minutes. You close or reopen roads and bridges and move or stage fire crews. The score counts the minutes people wait beyond four minutes, the national travel-time goal for fire crews.

    A map of Cedar Rapids census tracts shaded green, yellow and red, with dark green round station markers and square shelter markers clustered in the center of the city.
    The network disruption sim on real Cedar Rapids data, seed 2026. Each tract is shaded by drive time from the nearest fire station: green under 4 minutes, yellow 4 to 8, red over 8.
  5. #5 Griffin Hale

    In service coverage, each tick is a budget year. You open, close or move fire, EMS, police and hospital stations. The score weighs reach, fairness between neighborhoods and money left.

    A map of Cedar Rapids census tracts shaded green, yellow and red, with dark lines along some roads, round station markers, square shelter markers and a crossed marker in the south of the city.
    The service coverage sim showing fire coverage: green covered, yellow thin, red not covered. Dark lines mark where one station's area meets the next, and the cross marks where a station used to be.
    A map of Cedar Rapids census tracts with a green center, yellow tracts around it, an orange band of tracts along the south edge, station and shelter markers, and a crossed marker south of the center.
    The coverage sim's fairness view: green well served, yellow served, orange under served.
  6. #6 Griffin Hale

    In flood response, each tick is an hour. The river rises, crests and falls while you order evacuations, open school shelters and close roads early.

    A map of Cedar Rapids census tracts mostly shaded red, with translucent blue water along the rivers and creeks, red road segments, one yellow tract northwest of the center, a few pale tracts, two blue circle markers and one orange circle marker.
    Flood stage 2 in the flood response sim. Blue is water, red lines are flooded roads, red tracts have people in wet areas and the yellow tract is warned. Blue markers are crews you staged.
  7. #7 Griffin Hale

    The rules live in a plain .NET library with no ArcGIS code, the same split as Permit Office. The library finds its own routes on the road network, so its tests run on Linux. FEMA flood maps have no timeline, so the water rises through three flood zones in order, and any road that touches water closes.

  8. #8 Griffin Hale

    To check the route finding, Esri’s Network Analyst computed the same drive times from 18 fire stations to 50 census tracts. The median difference was 0 seconds, and 47 of 50 tracts agreed within 30 seconds.

  9. #9 Griffin Hale

    The largest gap, 103 seconds, came from where each tool placed a tract’s people. Network Analyst put them on a one-way highway ramp; the engine put them on a nearby street.

  10. #10 Griffin Hale

    All three sims run on Cedar Rapids data today, and every action works in each. Next come full play-throughs of each sim, then tuning the costs, times and score weights from those runs.

  11. #11 Griffin Hale

    All three sims ran inside ArcGIS Pro on real Cedar Rapids data, with every action working: road closures, station coverage and a river flood.