An AI system that plays The Legend of Zelda using PyBoy emulation, Azure OpenAI for decision-making, and local models for player control.
- PyBoy Integration: Runs legitimate Zelda ROM and captures screen data
- Azure OpenAI: Receives screen captures and makes strategic decisions
- Local Control: Translates AI decisions into button presses using local models
- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
cp .env.example .env
# Edit .env with your Azure OpenAI credentials- Place your Zelda ROM file in the
roms/directory
python main.pysrc/: Main source codepyboy_client.py: PyBoy integration and ROM managementazure_client.py: Azure OpenAI communicationscreen_capture.py: Screen capture and image processinglocal_controller.py: Local model for button controlmain.py: Main game loop orchestrator
roms/: Directory for ROM fileslogs/: Logging outputmodels/: Local model files