On 10/30, the TinyWorldFormer project gained attention showing that two small neural network models can generate and play simple versions of games directly on a Raspberry Pi Pico 2 W. With no hand written game code and no cloud dependency, the system delivers a game loop inside the chip itself.

How to run games with two neural networks on the Pico 2 W
On October 30, the TinyWorldFormer project gained attention by showing that two small neural network models can generate and play simple versions of games directly
Marcelo Santiago
Criador do bridgecode
Get AI articles in your inbox
Technical curation on models, agents and coding tools. No spam, unsubscribe anytime.
In this article you will see:
- How the two neural networks work together
- What you need to test
- Where to download the project and run the demos
The core idea is to split the work between two networks. The first, the world, receives the current frame and the action, and predicts the next frame and the reward. The second, the actor, receives the generated frame and chooses the next action. Together, they create a game loop inside the microcontroller. This is tiny ML: consumption and complexity stay low enough to run on the chip, with no backend server.
The author used two very small networks. The world is a transformer with weight repetition, while the actor is a neural network with two layers and between 9,000 and 16,000 parameters. The model runs with 8 bit integer quantization, which keeps it within the limits of the Pico 2 W. The result is demonstrations of Breakout, Doom Lite, Flappy and Pong that run from scratch on the chip.
The project illustrates a practical case of tiny machine learning: the algorithm leaves the cloud and lives on the device. For those who program agents, the example is useful for thinking about highly specialized agents, with isolated space and distinct responsibilities, each in its role. In the same territory, the Codex from Anthropic has similar work on software prototyping and the company PicPay used an AI agent to sell on WhatsApp, showing that lightweight agents have application even in non technical businesses.
Frequently asked questions
What does the Pico 2 W run?
Two small neural network models that build and play simple versions of games, such as Breakout, Doom Lite, Flappy and Pong.
Is it necessary to know the Raspberry Pi circuit?
To get started, just follow the project repository, which describes prerequisites, firmware and how to load a game onto the chip.
Are the games created by artificial intelligence?
Yes. The model generates the frame and decides the actions, without a fixed list of rules front to back.
What is tiny machine learning?
It is the practice of running machine learning algorithms on small, resource constrained devices, requiring less energy and less data exchange over the network.
What is the caution in using neural networks that small?
Size reduces consumption and complexity, but restricts the type of game and the quality of results. The ideal is to test with your use case and measure frame quality.
How to test today
The TinyWorldFormer repository explains how to compile and load firmware on the Raspberry Pi Pico 2 W. The project also shows how to run the world and the actor in the browser. Testing requires the chip, a compatible programming board and the development tools listed in the repository.
To get started, download the code, follow the compilation step by step and load the firmware onto the Pico 2 W. After loading, the little game appears and the agent plays on its own. The goal is to see the generate and act loop work within the chip limits, with no remote server.
Conclusion
The project shows a practical way to run lightweight AI systems on low cost hardware. For those who program agents, the example reinforces that each one has its own space and follows its role.
CTA
Get started today
The best approach is to start with a single simple game and watch how the world generates the frame and how the actor chooses the action. Then note where the loop breaks, in quantization, game size or frame resolution, and adjust one hyperparameter at a time. The repository describes the build order and what each circuit layer does, which helps isolate the problem when the chip does not load the firmware.
Para começar hoje
Choose a simple game and run the lightest version of the project. Compare frame quality with model size and test 8 bit quantization before increasing resolution. The goal the first time is to see the generate and act loop work within the chip limits, not to chase perfection.
Em resumo
The starting point is a cheap chip and two small models. The lesson for people programming agents is that isolated space and specialization reduce cost, without needing cloud for every decision.
Fonte
Related articles

5 tips to operate desktop with agent-desktop
Vercel Labs launched agent-desktop, a tool that lets AI agents operate desktop applications via the accessibility tree. See how it works.

How to use SuperCLUE to choose an AI model
The November 2026 SuperCLUE covers 19 models and category leaders. This guide shows how to use the category view to pick the right model.

Claude Code 2.1.319: Background MCP and Permissions
Version 2.1.319 of Claude Code adds background MCP tasks, the permissions.denyInsteadOfPrompting option, and new diagnostic commands.
