Idea · Oct 7, 2026

Build Your Own Micropolis

A staged assignment where students build a SimCity-style city simulator from scratch: zoning grid, power-network flood fill, traffic pathfinding, diffusion-based land value and pollution, and a growth model that ties them together.

What it would do

Inspired by a Show HN post of a SimCity clone written entirely in Emacs Lisp, this assignment uses the city builder as a vehicle for a semester's worth of core algorithms. Phase 1 is a tile grid with zoning and a render loop. Phase 2 adds the power grid as connected-component labeling (BFS flood fill from power plants). Phase 3 adds traffic: each zone sends trips to the nearest job or shop tile using Dijkstra on the road graph, with congestion feeding back into edge costs. Phase 4 adds pollution, crime and land value as diffusion over the grid (repeated blur kernels), and Phase 5 adds the growth rule that lets zones develop or decay based on those fields. Each phase ships with deterministic seed maps and expected snapshots, so autograding compares field values rather than screenshots.

Key features

  • Five phased milestones, each mapping to one algorithmic idea (grid modeling, flood fill, shortest paths, diffusion, cellular rules)
  • Deterministic seeded maps with golden JSON snapshots for autograding each subsystem independently
  • Debug overlays students must implement: power coverage, traffic heatmap, land value field
  • Performance target (a 128x128 city ticking at 30 Hz) that motivates incremental updates over full recomputation
  • Optional stretch: budget and tax model, or a 'mayor agent' that places zones to maximize population

More in Graphics & Simulation

Build Your Own BSP Level Renderer

A staged assignment in which students write a browser renderer for real Quake 1 shareware maps: parse the BSP file, walk the tree front to back, cull with the PVS, and texture surfaces with lightmaps, all on a software framebuffer before optionally porting to WebGL.

Graphics & SimulationClass assignmentLargeOct 11, 2026

Physics Puzzle Engine Lab

Students build a 2D physics engine from scratch using the Canvas API, then use it to author five puzzle levels that each demonstrate a specific physics behavior.

Graphics & SimulationClass assignmentLargeAug 25, 2026

Generative Art Gallery

Students build a full-stack web gallery where users submit text prompts, an LLM generates live HTML5 Canvas or SVG artwork from those prompts, and the community can vote, remix, and tag each creation.

Graphics & SimulationClass assignmentLargeJul 29, 2026

Emergent NPC Society

A browser-based 2D world where students configure NPC agents with minimal rules and observe emergent social structures form over time, making complex systems theory and agent design principles viscerally concrete.

Graphics & SimulationClass assignmentLargeJul 26, 2026

All 12 ideas in Graphics & Simulation →