Skip to content

exterminathan/NavAIGate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NavAIGate

An urban traffic simulator. Vehicles plan routes with A* and make per-tick decisions at intersections (stop signs, traffic lights, right-of-way) via behavior trees, all rendered live in a browser canvas.

NavAIGate visualizer

Quickstart

git clone https://github.com/exterminathan/NavAIGate.git
cd NavAIGate

Linux / macOS:

./start.sh

Windows (PowerShell):

.\start.ps1

The bootstrap script installs dependencies, runs the test suite, then launches Flask. Open http://127.0.0.1:5000/ once it prints Running on ....

Click any intersection in the visualizer to cycle its type (nothingstop_signtraffic_light).

Manual setup

Prefer to run each step yourself?

Recommended: use a virtual environment so dependencies don't pollute your system Python.

Linux / macOS:

python3 -m venv .venv
source .venv/bin/activate
pip install -r urban-traffic-sim/requirements.txt
pytest urban-traffic-sim/tests
python urban-traffic-sim/app.py

Windows (PowerShell):

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r urban-traffic-sim/requirements.txt
pytest urban-traffic-sim/tests
python urban-traffic-sim/app.py

Python 3.10+ is recommended (the repo pins 3.10 in .python-version). The .venv/ folder is gitignored.

Project layout

urban-traffic-sim/    Flask app, simulation core, BT, frontend assets
  tests/              pytest suite (graph, A*, BT smoke test)
docs/                 screenshots / preview assets
start.{sh,ps1}        one-command bootstrap
CLAUDE.md             deeper architecture notes

Credits

Originally built as the final project for CMPM 146 (Game AI) at UC Santa Cruz by:

The original repo was private; this re-upload contains follow-up fixes and improvements. For deeper architecture notes see CLAUDE.md.

About

Final Project from CMPM 146 Game AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors