AskVantage

Computing

Another kid just built a fully functional RISC-V computer inside a computer game

What if the future of computing wasn't silicon chips but virtual or meta computers within game environments developed and optimised by AI? Hmmm ...

Cite or link to this article

Griffin, M. (2024) 'Another kid just built a fully functional RISC-V computer inside a computer game', 311 Institute, 3 June. Available at: https://www.311institute.com/another-kid-just-built-a-fully-functional-risc-v-computer-inside-a-computer-game/ (Accessed: 1 October 2026).

A while ago I wrote about CHUNGUS-2 - something I called a Meta Computer because there's no official name yet for the tech - that was a computer that had been built in Minecraft out of Redstone blocks that was capable of running software, such as Artificial Intelligence (AI) and basic games. And now Canadian engineering physics student Xander Naumenko has spent more than half a year in Re-Logic's action-adventure sandbox Terraria, but not to explore or build a base - he's spent that time building a functional 32-bit RISC-V processor entirely in-game. And, just as we saw with the CHUNGUS-2 project, people are very impressed.

"I've been working on this for over six months now," Naumenko explains of his unusual project, "and thought it's cool enough that other's might be interested in learning about it. By emulating a complete RV32-I instruction set inside the wiring system of Terraria, we push back speeds to the early '70s era."

See it in action

Terraria is Re-Logic's popular sandbox game, in which the player is thrown into a procedurally generated world with little more than their wits and a friendly guide and given the job of survival — exploring the planet, researching new technologies, mining for resources, and crafting objects. Those objects, of course, are normally of use in-game — but what Naumenko has crafted is something very different.

"Inside the game there's a mechanic called 'wiring' which lets you trigger certain tiles such as opening doors or activating traps. When I say I've 'created a computer in Terraria' what I mean is that I've completely simulated the inner workings of a regular computer, except instead of electronics I did it inside of a video game world."

The resulting computer effectively simulates a 32-bit implementation of the free and open source RISC-V instruction set architecture, and is Turing-complete — meaning that, given enough time and resources, it can technically execute any program that a traditional computer can execute. To prove it, Naumenko has written software to run atop his processor — including a simple clone of Atari's Pong and a 3D rendering engine which, admittedly, takes 45 seconds per frame.

"In real world circuits, when a circuit is on it stays on," Naumenko explains of one of the biggest challenges faced in the project. "But in Terraria everything is just sent in pulses. This means it behaves completely differently, and a lot of traditional circuits have to be redesigned in this new paradigm."

This is, of course, not the first time a game has been used to create a functional computer, as well as CHUNGUS-2 late last year Danny Spencer became the first gamer to build a functioning calculator in Id Software's classic first-person shooter Doom.

Compared to a RISC-V core running in a traditional simulator, the Terraria version isn't exactly a speed demon — even when a game mod vastly accelerates the operation of the wiring system: "Running without the [WireHead] accelerator mod, the computer runs at around 0.1 instructions per second," Naumenko admits. "When using the mod I get around 5,000 instructions per second."

More details on the project are available in Naumenko's video above, while everything you need to replicate the simulator in your own copy of Terraria is available on the Computerraria GitHub repository under an unspecified open source license.

FAQ

Why does this matter?

What if the future of computing wasn't silicon chips but virtual or meta computers within game environments developed and optimised by AI? Hmmm ...

Matthew Griffin

About the author

Matthew Griffin Founder, 311 Institute

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath."

Read full bio

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath." 15-time best selling author of the "Codex of the Future" series, Matthew is the Founder and Futurist in Chief of the 311 Institute, a global Futures and Deep Futures advisory firm working with royal households, world leaders, G7, G20, and G77 governments, NGOs, and multi-national mid and mega cap firms to help them explore, shape, and lead the next 50 years of business and society.

An award-winning YouTube creator with over a million followers, with an unrivalled global reach and impact, Matthew is a highly sought-after international keynote speaker, lecturer, and mentor who collaborates with global leaders through the United Nations Alliance of Civilizations (UNAOC) and United Nations General Assembly (UNGA) to shape pivotal initiatives such as the UN’s AI for Humanity program, the United Nations Conference of the Parties (UN COP), and the World Economic Forum in Davos.

As the former Global Head of Cloud, National Security, and Enterprise Sales for companies including Atos, Dell-EMC, and IBM, Matthew has a proven track record of building multi-billion dollar business units and turning failing divisions into market leaders. His ability to identify, analyse, and communicate the implications of hundreds of emerging technologies and trends is unparalleled, and his insights are trusted by many of the world’s most respected organisations, including ABB, Accenture, Adidas, AON, ARM, BCG, Centrica, Citi, Coca-Cola, Dentons, Deloitte, Dow Jones, EY, Google, KPMG, Lego, Legal & General, LinkedIn, Microsoft, PepsiCo, Qualcomm, RWE, Samsung, Siemens AG and Siemens Energy, T-Mobile, UBS, VISA, Walmart, Workday, Worldpay and many others.

Regularly featured in the global media including the AP, BBC, Bloomberg, CNBC, Discovery, Forbes, Khaleej Times, Telegraph, TIME, ViacomCBS, WIRED, and the WSJ, Matthews mission is to help organisations create a fair and sustainable future whose benefits are shared by everyone irrespective of their ability, background, or circumstances.

What future do you need to see?

Choose one to get started on computing and the future of your organisation.

Where should Matthew reply?

Takes 30 seconds. No obligation. Matthew replies quickly. Privacy

Tag Cloud

Starburst opens that technology on the interactive 311 Starburst.

Sources and further reading

  1. on the Computerraria GitHub repository github.com

Source: first published by the 311 Institute on 3 June 2024. Cite as: Griffin, M. (2024). Another kid just built a fully functional RISC-V computer inside a computer game. 311 Institute. https://www.311institute.com/another-kid-just-built-a-fully-functional-risc-v-computer-inside-a-computer-game/

You are welcome to quote this article with credit and a link to the original.

Book a Keynote