A short choose-your-path history game about the Panic of 1873 and the end of Reconstruction (APUSH).
Play as one of two fictional people living through real events:
- Will Doyle, a railroad brakeman in Pittsburgh: the bank panic, layoffs, Tompkins Square, the 1874 elections, and the Great Railroad Strike of 1877.
- Henry Lewis, a freedman in Grant Parish, Louisiana: the Colfax Massacre, the Freedman’s Bank collapse, the White League, U.S. v. Cruikshank, and the troops leaving in 1877.
Each scene has a picture, a few sentences, and 2–3 choices. Choices change your money and health, and some outcomes are random. Either story takes about 5 minutes. Both end on The Big Picture, which shows what your choices could and couldn’t change, then the thesis, causation, complexity, and sources.
Double-click index.html. It needs no install and no build step, and works offline (fonts fall back to system fonts).
| Path | What it is |
|---|---|
index.html |
Page shell |
css/style.css |
All styling |
js/story.js |
All the writing: characters, scenes, choices, the Big Picture screen, sources. Edit this to change the story. |
js/engine.js |
Game logic (screens, choices, money and health). You shouldn’t need to touch it. |
images/ |
Pictures, by file name. See IMAGES.md for which file goes with which scene. |
rth-host.json, .github/workflows/deploy.yml |
Auto-deploy to Retiehe (samuelorock.xyz) on every push |
"w-1874": {
chapter: 2, when: "Autumn 1874", place: "Pittsburgh, Pennsylvania",
title: "Election Season",
img: "union-as-it-was.jpg", caption: "Thomas Nast, ...",
text: ["Short paragraph.", "Another one. Use **bold** and *italics*."],
fact: "Optional one-line ‘Real history’ note.",
choices: [
{ text: "Vote Democrat", to: "w-1875", outcome: "What happened next." },
{ text: "Go to the Centennial", to: "w-1877",
needs: { money: 6 }, effects: { money: -6, health: 10 } },
{ text: "Run", random: [
{ chance: 0.6, to: "w-1874", outcome: "You get away." },
{ chance: 0.4, to: "w-1874", effects: { health: -25 }, outcome: "You’re hurt." } ] }
]
}- Encyclopaedia Britannica, “Reconstruction.” https://www.britannica.com/event/Reconstruction-United-States-history
- Encyclopaedia Britannica, “Panic of 1873.” https://www.britannica.com/topic/Panic-of-1873
- Encyclopaedia Britannica, “Great Railroad Strike of 1877.” https://www.britannica.com/topic/Great-Railroad-Strike-of-1877
Every push to this repo runs .github/workflows/deploy.yml, which uploads the repo to samuelorock.xyz on Retiehe Host using the RTH_API_KEY repository secret. Files on the site that aren’t in this repo are deleted. Delete the workflow file to turn this off.
The earlier, text-heavy version of the game ("Front Page, 1873–1877") is still in the git history (commit 83bc12a).