---
title: Claude Plays Pokemon Hackathon
date: 1st April, 2025
summary: Making sure Claude had fun playing Pokemon.
cover: /media/writing/claude-plays-pokemon-hackathon/cover.jpg
coverCaption: Pikachu's first Waymo ride.
thumb: /media/writing/claude-plays-pokemon-hackathon/thumb.jpg
type: writing
---

## Claude Plays Pokemon Hackathon

I won this big Pikachu at the [Claude Plays Pokemon hackathon](https://luma.com/poke)! There were two prizes: one for the team that made the most progress, and one judges' pick.

The judges could award the plushie to whoever had an idea they liked, and they picked mine. My strategy was simple: every few rounds, I asked Claude to rate how much fun it was having from 1 to 10. If it wasn't having fun, I'd give it a break. Otherwise, I'd let it keep playing.

I wanted to see if it performed better when it was having more fun!

The team that won did [this](https://x.com/morph_labs/status/1906887929777267059). I am not pictured, but I won the big Pikachu that David is holding LOL.

**What I tried:**

I added an `assess_fun` function that asked Claude if it was having fun every 10 turns.

I also tried "stitching" together the different frames Claude has walked through, to give it "visual memory". I wasn't able to get it to work during the hackathon but got it working after:

<img src="/media/writing/claude-plays-pokemon-hackathon/stitched-map.jpg" alt="Frames Claude walked through, stitched into one map with its path drawn in red" />

**Things I learned from David:**

David Hershey (creator of Claude Plays Pokemon) has a helpful [starter repo](https://github.com/davidhershey/ClaudePlaysPokemonStarter), and did a [podcast here](https://x.com/FanaHOVA/status/1896729233785073718). I asked him a bunch of questions:

- 3.7 is way better than 3.5
- When Claude gave nicknames to its Pokemon, it started caring for them way more. It used to run to the Pokemon Center whenever their health was low
- Does prior Pokemon knowledge make performance worse? No clue
- Like Golden Gate Claude, if you activate an "Ash" neuron, will it make performance better? No clue
- He has tried all sorts of prompt engineering and image representation techniques to make it less blind, but it is still very blind
- The memory/summary stuff in place right now is very simple; he is not doing anything fancy
- He only gives Claude 4-5 tips on how to play the game well

Good slide:

<img src="/media/writing/claude-plays-pokemon-hackathon/slide.jpg" alt="Slide: Some things I learned that might save you time (YMMV)" />

**The hackathon:**

Only 1 team was able to enter Mt. Moon. [Morph](https://morph.so/) was hosting the hackathon and had [their framework](https://github.com/morph-labs/morphcloud-examples-public/tree/main/pokemon-example) for running the game on their cloud browsers. 60% of most teams' time was spent fighting/understanding this framework. It was very annoying.

**Other interesting ideas from the hackathon:**

Claude is bad at understanding Game Boy screens, so how do you make a Game Boy screen not a Game Boy screen? For example, using OpenAI or Gemini to "upscale" the image: "Please upscale this image. The layout should be identical, just convert the pixel art features into high res."

<img src="/media/writing/claude-plays-pokemon-hackathon/upscale-before-after.jpg" alt="A Game Boy frame next to the same scene upscaled by an image model" />

Running "search" over all possible states, kinda like running MCTS over all the actions possible from a given position and then choosing the best one.

**Questions from the Discord:**

People in the Claude Plays Pokemon Discord sent me questions for David. Here's what I remember:

- Picklemaniac worried that "fake" experiences Claude puts into its memory corrupt the whole system: Claude makes up a goal, the long-term memory stores it, and then keeps reinforcing it. Yep, David talked a bit about hallucinations when you have separate agents to supervise/strategize. This is a big problem.
- scooterboo: "Leak everything you can." You can find a bunch of stuff in his starter repo. It doesn't have everything, but it will give you an idea of the prompts.
- Pekbol brought up the legendary moment on the SS Anne where Claude wiped its whole memory, hallucinated "only sailors know how to leave", and beelined to the right path. David did mention that earlier models would claim the game was broken whenever they got stuck hahaha. Unsure if this is still an issue with 3.7.

Can't think of anything else, but if you have any specific questions, I'm sure I'll remember more stuff.
