Cost Allocation Game Theory Explorer
Cost Allocation Game Theory Explorer is an interactive educational web app that teaches cooperative game theory through the lens of sharing the cost of a joint water-resource infrastructure project. It is based on the 1982 paper "Methods for Apportioning the Cost of a Water Resource Project" by James P. Heaney and Robert E. Dickinson, published in Water Resources Research, and walks through a "Three Towns, One Reservoir" scenario alongside additional three- and four-player examples.
Users can compute and compare four allocation methods, SCRB, Shapley value, Nucleolus, and Equal Split, on an editable cost calculator, and explore a triangular Core visualization for three-player games or a 3D tetrahedron view for four-player games. The app also embeds the original research paper, includes a printable cheat sheet and guided quizzes, and is built entirely client-side with React, TypeScript, Tailwind CSS, Framer Motion, Recharts, and React Three Fiber.
Released under the MIT License (see LICENSE).