An interactive simulation that models the dynamic interplay between procedural strategy, information asymmetry, litigation economics, and settlement negotiations in civil lawsuits.
- Liability Strength: Set the true probability plaintiff prevails (parties discover this through litigation)
- Damages Range: Configure potential damages if plaintiff wins
- Claim Complexity: Affects discovery scope, expert needs, and trial length
- Forum Selection: Federal Court, State Court (Urban/Rural), or Arbitration
- Multiple Claims: Model cases with 1-8 distinct legal claims
- Litigation Budgets: Asymmetric resources create leverage
- Risk Tolerance: Risk-averse parties settle more readily
- Time Sensitivity: Delay costs differ between parties
- Reputation Concerns: Public litigation may harm business relationships
- Fee Arrangements: Hourly, contingency (33%/40%), or hybrid
- Insurance Coverage: Primary, excess, or reservation of rights scenarios
- Discovery Scope: Limited to scorched-earth discovery strategies
- Expert Witnesses: Expensive but can shift case valuation
- Fee Shifting: American Rule, English Rule, One-Way Pro-Plaintiff, FRCP 68
- Judicial Temperament: Neutral, defense-friendly, plaintiff-friendly, or settlement-pusher
- Jury Pool Characteristics: Pro-plaintiff to pro-defense spectrum
- Court Backlog: Affects time to trial
Two overlapping probability distributions showing each party's beliefs about case value. Watch them converge (or diverge) as discovery reveals information.
Real-time visualization of the Zone of Possible Agreement (ZOPA):
- Plaintiff's reservation price (minimum acceptable)
- Defendant's walk-away point (maximum they'd pay)
- Settlement probability based on ZOPA width and party characteristics
Track litigation costs as they accumulate:
- Phase-based burn rates
- Budget exhaustion warnings
- Milestone markers for key deadlines
Visual representation of what each party knows:
- Initial knowledge vs. discovered information
- Information gap indicator
- Shared knowledge baseline
See how factors cascade through the strategic calculus: Information → Beliefs → Expected Values → Reservation Prices → Settlement Probability
The simulation captures real litigation dynamics:
- Early Case: High uncertainty, wide belief distributions, large potential ZOPA
- Discovery: Information revelation narrows uncertainty, costs accumulate
- Mid-Case: Budget pressure builds, parties reassess positions
- Late Stage: Trial costs loom, settlement pressure peaks
- Resolution: Settlement in ZOPA, or trial if positions don't overlap
- Play/Pause: Automatic day-by-day advancement
- Speed Slider: 1x to 10x simulation speed
- Fast Forward: Jump 30 days at once
- File motions (MTD, MSJ)
- Conduct discovery and depositions
- Retain expert witnesses
- Hold settlement conferences
- Make/receive settlement offers
- Smoking gun evidence discovery
- Key witness changes testimony
- Media attention
- Budget crises
- Third-party additions
cd litigation-simulation
npx serve .Then open http://localhost:3000
cd litigation-simulation
python -m http.server 8000Then open http://localhost:8000
Double-click index.html to open directly in your browser.
- Create a new repository on GitHub
- Push the code:
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/willimj3/litigation-simulation.git
git push -u origin main- Go to repository Settings → Pages
- Set Source to "Deploy from a branch"
- Select "main" branch and "/ (root)" folder
- Save - your site will be live at
https://willimj3.github.io/litigation-simulation
- Pure JavaScript: No frameworks or build process required
- Canvas Visualizations: High-DPI aware rendering
- Responsive Design: Works on desktop and tablet
- No Backend: Runs entirely in the browser
index.html- Main HTML structurestyles.css- All stylingsimulation-engine.js- Core simulation logicvisualization.js- Canvas-based chartsapp.js- UI orchestration
Parties use Bayesian updating when new information is revealed. Each discovery event, deposition, or motion ruling shifts beliefs toward the true underlying case value.
Each party's reservation price (minimum/maximum acceptable settlement) is calculated from:
- Expected value at trial
- Remaining litigation costs
- Risk tolerance adjustment
- Time pressure factor
- Reputation concerns
The Zone of Possible Agreement exists when defendant's maximum > plaintiff's minimum. Settlement probability increases with ZOPA width and risk aversion.
Motion success probabilities depend on:
- True case strength
- Judicial temperament
- Random variation (litigation uncertainty)
Partial grants are modeled for motions to dismiss (some claims survive) and summary judgment (some issues resolved).
MIT License - feel free to use, modify, and distribute.
Issues and pull requests welcome! Areas for potential enhancement:
- Appeal dynamics
- Multi-party litigation
- Mediation modeling
- More sophisticated expert witness battles
- Daubert challenges
- Jury selection dynamics
