A browser-based traffic board game with optional simulation tooling for difficulty/balance checks.
- Windows 10/11
- A modern browser (Chrome or Edge recommended)
- Internet connection (the app loads Three.js from CDN)
- Optional: Node.js 18+ to run batch simulations
- Open the project folder:
- Double-click
index.html. - The game opens in your default browser.
- Open PowerShell in the project folder.
- Run:
cd C:\.....\CS428\2py -m http.server 8000
- Open:
http://localhost:8000
- Stop server with
Ctrl + Cin PowerShell.
The simulation runs multiple games and reports completion rate + difficulty recommendation.
- Open PowerShell in the project folder.
- Run:
cd C:\Users\......\CS428\2node scripts\simulateGames.js
- Expected output includes:
- Number of games simulated
- Agents completed / total agents
- Success percentage
- Recommendation (too hard / too easy / in target range)
- End Turn: Advance one turn
- Start: Enable autoplay
- Arrow buttons: Move current player
- Place Roadblock: Use special ability when available
- Blank page or missing visuals: Refresh once and confirm internet access.
pynot found: Install Python 3, then reopen PowerShell.nodenot found: Install Node.js LTS, then reopen PowerShell.- Port 8000 already in use: Run
py -m http.server 8080and openhttp://localhost:8080.
index.html— browser entry pointstyles.css— game UI stylessrc/— game logic and rendering codescripts/simulateGames.js— batch simulation runner