Projets
Voir sur GitHub
davidhershey/ClaudePlaysPokemonStarter
À propos
A minimal implementation of Claude playing Pokemon Red using the PyBoy emulator. This starter version includes:
Autres projetsProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalClaude Plays Pokemon - Starter Version
A minimal implementation of Claude playing Pokemon Red using the PyBoy emulator. This starter version includes:
- Simple agent that uses Claude to play Pokemon Red
- Memory reading functionality to extract game state information
- Basic emulator control through Claude's function calling
Setup
Clone this repository
Install the required packages:
pip install -r requirements.txtSet up your Anthropic API key as an environment variable:
export ANTHROPIC_API_KEY=your_api_key_herePlace your Pokemon Red ROM file in the root directory (you need to provide your own ROM)
Usage
Run the main script:
python main.py
Optional arguments:
--rom: Path to the Pokemon ROM file (default:pokemon.gbin the root directory)--steps: Number of agent steps to run (default: 10)--display: Run with display (not headless)--sound: Enable sound (only applicable with display)
Example:
python main.py --rom pokemon.gb --steps 20 --display --sound
Implementation Details
Components
agent/simple_agent.py: Main agent class that uses Claude to play Pokemonagent/emulator.py: Wrapper around PyBoy with helper functionsagent/memory_reader.py: Extracts game state information from emulator memory
How It Works
- The agent captures a screenshot from the emulator
- It reads the game state information from memory
- It sends the screenshot and game state to Claude
- Claude responds with explanations and emulator commands
- The agent executes the commands and repeats the process
Explorer des projets similaires
Chargement…