The ultimate racer.
A mono-repo for the AI that plays the Shopify Horizon Drive game.
- Docker - Required for running the game client and autopilot.
- Google Chrome - Required for browser automation (other browsers may work but are not documented).
Follow these steps to get Stig up and running:
First, set up the environment configuration files and create necessary directories:
# Create environment files from templates
make env
# Create asset directories (datasets, models, recordings)
make assetsDownload the pre-trained novice model:
make stig-noviceOpen a new terminal and start Chrome with remote debugging enabled:
macOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/stig-profileLinux:
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/stig-profileAfter starting Chrome, you'll see output like this:
DevTools listening on ws://127.0.0.1:9222/devtools/browser/2b1ea713-517a-479e-a17b-3958601b23fb
Copy the WebSocket URL (the ws://... part) and update your environment files:
- Edit
game/env/.env - Set
BROWSER_WS_URLto the WebSocket URL you copied
Example:
BROWSER_WS_URL=ws://127.0.0.1:9222/devtools/browser/2b1ea713-517a-479e-a17b-3958601b23fbOpen two new terminals and run these commands:
Terminal 1 - Start the autopilot:
make stig-autopilotTerminal 2 - Start the game client:
make game-play- Record gameplay:
make game-record - Train a new model:
make stig-train