frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Marches & Gnats – Coding puzzle game where you program Turing machine

https://mng.quest/
2•maltsev•2h ago
Marches & Gnats is a browser-based coding puzzle game inspired by Advent of Code, but instead of writing code in a conventional programming language, you program a Turing machine.

Each quest presents a concrete problem and a minimal model of computation. You define transition rules, run the machine, inspect the output (or errors), and iterate until it works.

The game is set in 19th-century Estonia during the Romantic era and combines narrative with progressively harder problems, including arithmetic, sorting, parsing, ciphers, and cellular automata.

Comments

maltsev•2h ago
Hi, I am the creator of Marches & Gnats.

I enjoy Advent of Code and was inspired by it, but since it runs for a short time each year, I wanted to build something in a similar spirit that people could play year-round.

In Marches & Gnats, you do not write code in a conventional programming language. Instead, you program a single-tape Turing machine by defining its transition rules, running it, and inspecting the tape to see what happened.

There are currently 33 quests. Some are small and can be solved in ~20 minutes, while others are more involved and reward careful planning. The problems cover arithmetic, sorting, parsing text, ciphers, cellular automata, and related topics.

The game also has public leaderboards that focus on solution quality (program size and efficiency), rather than how quickly a solution was submitted. I've also experimented with AI agents that attempt to solve the same quests by directly programming Turing machines under the same constraints.

I would be very interested in feedback, especially from Advent of Code players. Happy to answer any questions!