Interactive Web GameStatus: Complete

Solve World Hunger

Can you Solve World Hunger? is a small browser game about the trade-offs behind food security. You play the Director of the Harvest Compact, a fictional global coalition, and your aides bring you twenty briefings drawn from real reporting. Each reply you choose moves five connected metrics, and only after the last briefing do you find out how your term went.

My role
Solo project: concept, game design, writing, and development
Topics
JavaScript · Game design · Educational · Cloudflare

The Idea

Hunger doesn't have one lever to pull. Growing more food can strain stability or fairness; making food affordable can cost something elsewhere. I wanted a game where the player feels those trade-offs directly, and where the interesting part is understanding why a choice helped one thing and hurt another.

What I Built

Each game draws 20 briefings from a pool of 100 scenarios, each one linked to a real news article. Every briefing offers three replies, shuffled each time, and every reply moves five metrics: Food Availability, Economic Access, Nutrition, Stability, and Equity.

The game is presented as a team chat. Five aides, with a different cast every game, deliver the briefings in their own voices and come back with early numbers from the field. It ends with a graded report (Crisis, Stalled, Major Progress, or Hunger Solved) with a history chart for each metric and a log of every decision.

How It Works

It's a single page of plain HTML, CSS, and JavaScript: no build step, no dependencies, no server. The rules live in a small engine of plain functions with no DOM dependency, so the same code runs in the browser and in Node, where I can simulate thousands of games to check balance. Scenario data, staff dialogue, configuration, and UI are kept in separate files, so new briefings or retuned thresholds never touch the game logic. It's designed phone-first, opens into a full workspace on wide screens, and deploys as a static site on Cloudflare.

Challenges & Decisions

The first version ended as soon as the numbers crossed a win or loss threshold. In the redesign I made two deliberate changes. First, nothing ends early: every term is exactly twenty briefings, and the thresholds grade the ending instead of cutting the game short, so a player sees the full range of trade-offs. Second, which aide brings a briefing never changes the numbers. If one staffer gave a bonus to certain policies, players would start choosing based on the person instead of the policy, which would muddle the lesson.

Throughout, the model is illustrative. It's meant to show how trade-offs interact, not to predict real-world policy outcomes.

What I Learned

Separating the rules from the interface paid off quickly. Once the engine could run headless, balance became something to measure rather than guess. The redesign also kept every scenario, effect, and threshold from the original version, because the existing data already read like a conversation (a briefing, a question, an instruction, a status report), so the chat framing was a presentation change, not a content rewrite.

Current State

Complete and playable online. The chat-style redesign, finished in October 2026, is the final version.