C:\GRIFFIN\PROJECTS\GAMES\PERMIT-OFFICE>

[@] MAP
###C########P###
#...........$..#
#.&&..&&...&&..#
#......@.......#
#...*......&&..#
#..............#
###H########O###
GAMES/PERMIT-OFF

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

Permit Office

Status
Public beta
Stack
Game · ArcGIS · ArcPy · Python
Source
github.com/Griffinhale/permitOffice
  1. #1 Griffin Hale

    A 12-week city-management game that runs inside ArcGIS Pro, where permits, inspections and map selections change the city.

    At a glance

    • Outcome: A 12-week city-management game that runs inside ArcGIS Pro. You are the city’s permit clerk: map data holds the city, map selections are your input, and a goal you pick plus three audits grade the season.
    • Status: Public beta. v0.97.0 was tagged October 5, 2026 and played through full seasons in ArcGIS Pro 3.7. It needs Pro 3.3 or later and was tested on 3.6 and 3.7.
    • Role: Designed the rules, ArcGIS adapter, tests and docs solo; reviewed and debugged AI-assisted implementation.
    • Stack & libraries: Python, arcpy, Tkinter, ArcGIS Pro 3.3+ (tested on 3.6 and 3.7), file geodatabase.
    • Validation: Seeded rules tests play a full season to the final audit without an ArcGIS license. Before v0.97.0, a live round in Pro 3.7 checked New Game, Continue and the season-end reports.
  2. #2 Griffin Hale

    • Contribution: I wrote the rules, the 17 decision records and a failed-experiments log. I built the virtual machine test loop and designed the probes; AI sessions drive Pro, and I review the recordings and choose fixes.
    • Source: MIT-licensed on GitHub, with architecture docs and decision records.
    • Tests: The rules tests check that one seed always builds the same city, how buyouts resolve, the audits at weeks 4, 8 and 12, and how ignored cases return. Stand-in ArcGIS objects let the map-redraw and save tests run without a license.
    • Limitations: v0.97.0 was checked live on Pro 3.7; earlier versions were built and tested on 3.6. Live runs used a throwaway save, so saving to the project’s default folder is covered by tests only.
  3. #3 Griffin Hale

    Permit Office is a turn-based city game that runs inside ArcGIS Pro, the Windows mapping software city analysts use. You play the city’s permit clerk. Every permit is tied to shapes on the map, district conditions, pressure from interest groups and ongoing costs. Its effects show up on the map.

  4. #4 Griffin Hale

    A season runs 12 weeks. New Game offers three goals drawn from the seed, such as quieting every grievance or raising city trust to 55. You file one, and week 12 judges the season by it.

    Permit Office main menu with New Game and Help, no saved game, and a warning naming World Topographic Map and World Hillshade.
    The first-run menu identifies basemap layers that cause redraw gaps. New Game moves play to an empty Permit Office map.
  5. #5 Griffin Hale

    Each week brings two new cases plus follow-ups, such as a street vendor compact, a utility trench or a procession route. You get two action points a week. Inspecting a file costs one and reveals its risk. You then approve the case, approve it with conditions or deny it. Each case says what happens if you ignore it.

    Permit Office in week 2 of a seeded season: a five-by-five grid of named districts on the map beside the desk pane. The header reads WEEK 2/12, AP 2/2, $76 (+16); GOAL: Quiet streets: 3 district(s) at grievance 4, 3 open incident(s) (open); AUDIT: week 4 checkpoint: COND 50, 20 to PASS; PATIENCE: attended. The Desk tab lists four open cases. Civic Incident Response is selected, targeting North Green, with Inspect File 1 AP, Respond 1 AP / $9, Settlement 1 AP / $16 and Defer 1 AP / $0. At the bottom, End Week [W] reads: At close: 3 returns, 1 expires.
    Week 2 of a seeded season in v0.97.0. The desk shows the selected case, its target district and the cost of each action; the header tracks the goal, the next audit and council patience.
  6. #6 Griffin Hale

    Once a week you can start an initiative that favors one district type or acts on the districts selected on the map. Ignored cases build pressure. A weak district can then be bought out by a stronger neighbor, which changes its type and name.

    The same seeded map with the Reports tab open on Week Closed. City effects: population drift +19, 3 new civic incident files, displacement pressure in 5 districts. Local changes list contested buyouts, such as Cinder Annex from Cinder Yard and Lower Yard from Bright Crossing, and refused bids at North Yard and Old Ward. Economy: Start $60, permit spend $0, revenue $28, upkeep $12, net +16, end $76.
    Each End Week files a report of buyouts, the week's money and changes to the docket.
  7. #7 Griffin Hale

    The council audits the office at weeks 4, 8 and 12. A failed audit costs patience: first a warning, then one action point less, then dismissal. A pass wins patience back.

    The seeded map after week 12, with converted districts renamed Old Market, North Reserve, North Quad, Glass Works, North Quarter, Old Green, Cinder Quarter and Lower Works. The header reads WEEK 12/12 CLOSED, $203 (+9); GOAL: Season lost.; AUDIT: no checkpoints left: PASS 72, PASS line met. Reports shows Final Audit: PASS with Score=72 and Activity=50, friction=36, trust=35, exposure=25, money=203, and a New Game button.
    A finished seeded season: the final audit passed at 72, but the filed goal was missed, so the season is lost.
  8. #8 Griffin Hale

    Districts, cases, projects and permits all live in one ArcGIS database file. That file is also the save. The rules are plain Python that never loads ArcGIS code. A fixed seed can play all 12 weeks in tests on a computer with no ArcGIS license.

  9. #9 Griffin Hale

    ArcGIS Pro runs its scripting and its map on one thread. A full map redraw took 4 to 5 seconds, so the game redraws only the layers a decision changed. On Pro 3.7 it switches a layer’s filter in place. The district step now takes 0.33 to 0.52 seconds, down from 1.1 to 2.3.

  10. #10 Griffin Hale

    A copy of the districts drawn underneath keeps their colors on screen while the top layer redraws, so the board no longer flashes white.

  11. #11 Griffin Hale

    ArcGIS Pro runs only on Windows, so I test it from Linux through a Windows virtual machine. An AI session inside the machine performs one map operation at a time while a recorder timestamps every screen frame. Snapshots of each layer before and after show which shapes changed. Together they catch redraw problems shorter than a second, which logs miss.

  12. #12 Griffin Hale

    Closing the game window crashed ArcGIS Pro. The loop traced the crash to the window’s toolkit being shut down from the wrong thread. I moved the shutdown onto the toolkit’s own thread. Pro then ran another map command after the window closed, which confirmed the fix.

  13. #13 Griffin Hale

    v0.97.0 is tagged on GitHub. Next come a balance pass for the new goals and initiatives, live runs on Pro 3.3 to 3.6, and a live check of the default save folder. The same rules-first design now runs on real city map data in Civic Sims, a separate ArcGIS Pro add-in.

  14. #14 Griffin Hale

    Released v0.9.0, the first public version: a full 12-week season playable inside ArcGIS Pro, with seeded cities, inspections, approvals, buyouts and a final audit.

  15. #15 Griffin Hale

    Released v0.95.0. The map shows each decision's result without the old 4 to 5 second full redraw.

  16. #16 Griffin Hale

    Released v0.97.0. Each season now starts from a goal you pick, the council audits you at weeks 4, 8 and 12, and you can start one initiative a week. Every run opens on a main menu with Continue and New Game.