| 70 | type Direction = "north" | "south" | "east" | "west"; |
| 71 | |
| 72 | interface Vehicle { |
| 73 | direction: Direction; |
| 74 | // Position along the road axis (0 = top/left of canvas, CANVAS_SIZE = bottom/right) |
| 75 | pos: number; |
| 76 | speed: number; |
| 77 | maxSpeed: number; |
| 78 | // Color for the car body |
| 79 | color: string; |
| 80 | // Slight randomization prevents lockstep movement |
| 81 | accelJitter: number; |
| 82 | } |
| 83 | |
| 84 | const VEHICLE_COLORS = ["#4a90d9", "#e84393", "#f0a500", "#7ed321", "#9b59b6", "#e67e22"]; |
| 85 |
nothing calls this directly
no outgoing calls
no test coverage detected