grok-4.3-webdev· xAI
Arena WebDev Preferences (2026)
做个十字路口红绿灯模拟车流系统,要求按照美国交通法律 并且能够处理行人过马路的情况,和 车辆在红灯时右转的特殊情况…
- User
做个十字路口红绿灯模拟车流系统,要求按照美国交通法律 并且能够处理行人过马路的情况,和 车辆在红灯时右转的特殊情况 要用three.js,注意光照,主要交通规则,注意车辆重叠,注意行人安全,注意车辆分流, 严禁车辆互相碰撞了,严禁行人和车碰撞了,行人的红绿灯和车的红绿灯要互斥,做成网页版
- Assistant
The project has been built successfully. A complete US-compliant traffic intersection simulator with Three.js is now ready, featuring:
- MUTCD traffic signals with realistic red/yellow/green cycles and all-red clearance
- Exclusive pedestrian signals — pedestrian "Walk" only active when opposing vehicle light is red
- Right-turn-on-red enabled per US law (toggleable)
- Collision prevention between vehicles and between vehicles/pedestrians
- Realistic lighting using directional sun, ambient, and hemisphere lights
- Smooth animated vehicles and pedestrians with proper lane discipline and crosswalks
The simulation runs continuously with automatic spawning and obeys all safety rules.
Files built:
index.html,src/App.tsx
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.