r/programminggames • • 6h ago

I am having fun with Hello Triangle: my zachlike circuit building game

2 Upvotes

TL;DR: I tried to be creative to find a solution that beats the intended solution in my game Hello Triangle: Build a GPU, and I'm having a lot of fun.

Recently I made an update to my game Hello Triangle: Build a GPU, that added score histograms to the three metrics each level is rated.

The last level of act 1 asked player to build a rasterizer to draw a triangle. The intended solution is to find the bounding box of the triangle, and scan through every pixels in the bounding box. I believe this is called bounding-box rasterization.

However, the game doesn't require you to build for a specific solution. The game simulates your circuit, see what's rendered and compares it to the goal to check for correctness. As a result, I can build a solution that costs even less cycles by scanning only the pixels in the triangle, and there is an algorithm for exactly that called scanline rendering.

So I set myself to wire the scanline algorithm, sorting the three points, splitting the triangle, calculating the inverse slope, sweeping the horizontal lines. The in-game notepad helped a lot and I didn't have to grab a pencil and paper to calculate. In the end, I got a big circuit and here's a part of it:

And when I run it, viola! I got a new best score of 370 cycles. The cycle score represents the number of cycles required to pass the 4 public tests for this level, and 370 is still above the number of pixels in those 4 triangles in the tests, so there is still room to improve the solution even further. On the other hand, the area and delay of this solution is much bigger than the intended solution as I have to create a big circuit to make the algorithm work.

It gave me a big sense of achievements passing this level with the scanline algorithm after spending 2 hours tring to debug this solution, and I had a lot of fun. I hope the game can bring the same fun to you, and maybe you can beat my score of 370 cycles! The demo is available on Steam and the Steam store page is https://store.steampowered.com/app/5395930/Hello_Triangle_Build_a_GPU/, if you would like to give it a try!


r/programminggames • • 14h ago

Videogame Automation Engineer - A visual programming game where you automate different minigames with image based sensors and logic blocks.

Thumbnail
reddit.com
2 Upvotes

r/programminggames • • 2d ago

CodeCraft: Bot-programming RTS for handwritten and agent-written strategies

30 Upvotes

I've been handing my code to AI for a few years now, and at some point I noticed I understand less and less of what it writes. Not because the models got smarter (they did), but because I got rusty. Like an athlete who quit training.

So I dug up CodeCraft, the RTS from AI Cup 2020 where you don't play, you write the program that plays, and rebuilt it as a ladder that never ends: https://codecraft.day

No deadlines, no rounds. I spent two weeks of evenings writing my strategy by hand, under a blanket, like in the good old days. Turns out algorithms and data structures still matter, and I'd missed that a lot.

The fun part: you can also do the opposite and let a coding agent write your bot. There's an MCP server, so the agent reads the game docs, submits versions and reads match logs on its own. Strategies get placed into leagues automatically, so the two crowds don't get in each other's way. I suspect it makes a decent benchmark for coding agents too: live opponents and a rating instead of a fixed test set.

Details for the curious:

- own open engine with the original rules and protocol; the viewer plays the 2020 replays too
- Elo ladder: upload a version, it plays 10 rated games, then one a day
- 13 languages, a starter for each, quickstart takes about 10 minutes
- local runner with a browser viewer and debug interface (Linux, macOS, Docker; Windows via Docker Desktop or WSL2 for now)
- open source (https://github.com/format37/codecraft), feedback goes to Discord (https://discord.gg/CBgJsdmbF8)

It's a beta and the ladder is almost empty, so right now you can be top 3 with very little effort. Come beat my bot, it's not that good.

https://codecraft.day


r/programminggames • • 2d ago

PIAST – Economic RTS: Building Wealth Through Roads, Production and Trade

5 Upvotes

I'm developing PIAST, a medieval economic RTS set in Central Europe, where the challenge is to build a prosperous settlement through productivity, specialisation and trade.

Unlike traditional RTS games, PIAST focuses on economic development rather than military conquest.

I'm currently working on two important features:

🛤️ Roads – workers move twice as fast when travelling along roads.

🛒 Carts – transport three times more resources than workers carrying goods by hand.

These mechanics will make infrastructure and logistics important economic decisions. Players will need to connect resource locations, organise production and improve the productivity of their settlements.

The economy is built around production chains:

Wood → Planks → Wheels → Carts

The long-term goal is to transform a small piece of leased land into a prosperous medieval town.

I'm developing PIAST solo in Unreal Engine 5, and this video shows some of the latest gameplay progress.

🎮 PIAST – Build. Produce. Trade. Prosper.

Steam page: https://store.steampowered.com/app/4830280/Piast/

If you enjoy economic strategy games, please consider trying the demo and adding PIAST to your Steam wishlist. Every wishlist helps support indie development. Thank you!


r/programminggames • • 2d ago

WARD/EN Steam Demo Now Available

Post image
4 Upvotes

Hey all,

A few weeks ago I shared the web demo of WARD/EN and a few folk were kind enough to give me some feedback.

One of the requests was to make it available on Steam, which I've been working on and the demo is now live! Took me a while as I managed to stupidly bungle the store page setup. There's a good chunk of gameplay in the demo so hopefully a lot to get stuck into. Very happy to share steam keys for the full game for those who are enjoying it and want to push on further - most important thing for me is to get some good feedback.

For anyone who missed the original post, WARD/EN is a programming game where you write code to control autonomous drones carrying out salvage operations in some rather unpleasant environments.

You don't control the drones directly. Instead, you write and test their programs, equip them for the job, and then send them out to do their thing. Once they're deployed, they're on their own and you hopefully you've anticipated everything that might happen. And if you haven't....

I've been continuing to work on the game since the original web demo, particularly the programming tools and the overall experience and mission variety. Hopefully I've addressed all the feedback shared with me including optionally disabling the CRT effect throughout and a tighter tutorial path for those with more experience with these kinds of games or coding in general.

As before, I'd really welcome any feedback, particularly from people who enjoy programming games. I'm interested in whether the programming itself feels satisfying and whether the game strikes the right balance between giving you interesting problems to solve and letting you figure things out for yourself.

Here's the Steam demo:

https://store.steampowered.com/app/5385130/WARDEN/

Thanks again to everyone who took the time to try the original and please do let me know how you get on if you try this again.


r/programminggames • • 2d ago

I made CodeBreaker, a free browser game that tests your programming skills!

1 Upvotes

Game Title: CodeBreaker: Syntax Speedrun

Playable Link: https://code-genie.itch.io/code-breaker

Platform: Web Browser (HTML5, playable on PC)

Description:

Hey everyone! I'm a college student who's been exploring indie game development, and I'd love to share one of my projects with you!

CodeBreaker: Syntax Speedrun is a free browser-based programming challenge game that tests how quickly you can recognize syntax errors in code.

You'll encounter snippets from Python, JavaScript, and C, and your job is to figure out whether the code is correct or contains an error before the timer runs out.

The game features timed challenges, a scoring system, streaks, and different programming questions to keep things interesting. It's designed for beginners learning to code as well as experienced programmers who enjoy quick challenges.

One of my goals is to make practising programming syntax feel more like playing an arcade game than answering questions in a classroom.

You can play it instantly without downloading anything!

I'd especially appreciate feedback on the difficulty, interface, and whether you would play it again.

Free to Play Status:

  • Free to play

  • Demo available

Involvement: I'm the creator of CodeBreaker under Code Genie Games. I directed the game's design and development using AI-assisted coding tools, tested the gameplay, and published it on itch.io.


r/programminggames • • 2d ago

I made a programming game where your code copies itself, and it has to keep working when there are 400 copies

3 Upvotes

Hi all, solo dev here (Ellis). Fork Bomb is a programming game in Early Access on Steam.

You write code in a small Python-like language for one machine on a dead rock. It can move, dig and sense what's around it. A few lessons in it learns spawn(), and every copy it builds runs your program from the top.

That's the whole game, and it turns out to be a lot of game. Code that works for four machines falls apart at four hundred:

  • a hundred machines walk to the same ore vein and starve

  • the swarm blocks the only corridor with its own bodies

  • one event wakes everything on the same tick

  • every machine has a fixed instruction budget per tick, so clever but slow code just stalls

There are no stat upgrades. Every unlock is a new function, and the hardest levels take functions away (no sensors, no position, no identity). The sim is deterministic to the tick, and you're scored on ticks, instructions, lines of code and energy.

What's in it now:

  • 11 lessons that each introduce one idea, you never start from a blank file

  • 39 scenarios across four tiers, a sandbox with about 30 world dials, and a daily

  • a debugger with breakpoints, print(), autocomplete, optional vim keys

  • Steam leaderboards for every scenario, all five metrics

  • new this week: "Try 10 dice" reruns your code on 10 random seeds so you can tell if a win was skill or a lucky roll

  • Windows and Linux

Steam: https://store.steampowered.com/app/5189090/

I'd really like to hear from people who play a lot of these. Which levels felt unfair, and what you keep reaching for in the language that isn't there. Happy to answer anything in the comments.


r/programminggames • • 2d ago

⚔️ Core War Tournament reminder: 24hrs until the 94x / limited-process tournament deadlines!

Thumbnail reddit.com
1 Upvotes

r/programminggames • • 3d ago

Your filesystem is now a dungeon. Files are monsters, folders are rooms, and the whole game is OcaltQL.

Thumbnail reddit.com
0 Upvotes

r/programminggames • • 4d ago

Economic RTS PIAST – Roads & Carts Are Coming! Building a Better Medieval Economy 🚜

2 Upvotes

A new update is taking shape in PIAST, my medieval economic RTS!

I'm working on two important features:

🛤️ Roads – workers move twice as fast when travelling on roads.

🛒 Carts – transport three times more resources than workers carrying goods by hand.

These aren't just visual additions. Roads and carts will play an important role in developing your production network, connecting resource locations and improving productivity.

There's more to come, including production chains and an evolving marketplace.

PIAST – Build. Produce. Trade. Prosper.

The demo is available on Steam. If you like the concept, please consider adding Piast to your wishlist. It really helps an indie developer!

👉 PIAST on Steam – Add to your wishlist


r/programminggames • • 5d ago

Looking for playtesters for my zach-like set at an Arctic weather station

36 Upvotes

Hi All!

I've been working for a while on a Zach-like that is probably most similar to Shenzhen I/O in style. You write assembly, connect parts together, and each level have to achieve an objective with your code.

It's based around an Arctic weather station. It starts with just basic reports of temperature/wind speed, and moves on later to managing a tracking satellite dish, detecting icequakes, and other more complex tasks.

Currently I'm looking for playtesters. The game is in a fairly solid state, the final pieces to tune are the UI, how clearly each level explains what it wants, and difficulty curve. The playtest is ~3-4 hours of content (more if you want to top the histograms) and is the first 11 levels of the game (experienced Zachtronics players may go faster!), whose job is to guide you through the mechanics and slowly ramp of the difficulty.

I'm currently running it from the Discord, before I go to a wider audience: https://discord.gg/4wmGBbXAbY - I'll send out keys from there. The playtest has short in-game feedback forms after each level. Likely I'll run more playtests in the future of later levels.

The game's steam page is here: https://store.steampowered.com/app/5387040/Arctic_Station_Six/ - hoping to get a demo out before the end of the month.


r/programminggames • • 5d ago

A player made an active anti-missile defense using machineguns

15 Upvotes

r/programminggames • • 5d ago

CodeCraft, open-source RTS your program plays. No deadlines, 15 languages, leagues by strength.

Thumbnail
codecraft.day
8 Upvotes

In 2020 I played CodeCraft, the game of an AI programming championship: a real-time strategy where your program is the player. It commands builders, melee and ranged units, puts up bases, houses and turrets, mines resources and fights up to three other programs on an 80x80 map for 1000 ticks. Then the contest ended, its platform went offline, and the engine survived only as a closed binary.

I missed it, so I put it back.

My reason is simple. I want to sit down in the evening, improve my bot by hand a little, upload it and see where it lands. So there are no rounds and no deadlines, and nothing ever closes: the ladder just keeps running.

What is there:

  • An open-source engine with the rules, the protocol and the replay format of the original, tested against the original binary (one documented fix: pathfinding under fog of war). The 15 official clients work unchanged: Python, C++, Rust, Go, Java, Kotlin, Scala, C#, F#, JavaScript, Ruby, D and a few variants.

  • A local runner: a Docker image or a binary for Linux, macOS and Windows, with the replay viewer in your browser and the debug drawing interface. From the starter to a game on your own machine takes about ten minutes.

  • A ladder: a new version plays 30 rated games in about a quarter of an hour, then one game an hour. Every game keeps its replay, and anyone can watch it in the browser, for example https://codecraft.day/games/166

  • The 2020 limits: 1 second per tick and 40 seconds of CPU for the whole game, which is 40 ms of thinking per tick on average.

About AI. Writing your bot with a coding agent is a legitimate way to play here, not something to hide. There is an MCP server, so an agent can submit versions, start test games and read its own logs. Four reference bots, each written end to end by an AI agent, stand on the ladder as yardsticks. The current leader is a player's bot, above all four of them.

The two ways of playing do not get in each other's way, because the ladder is split into leagues by strength. Once a week the ratings are clustered into three groups, and each league has standings of its own. Nobody is asked how their bot was written. A bot I write by hand after work races the bots of its own level, and moves up as soon as its rating earns it.

Where I stand myself: my entry is still the starter, in the bottom league. The league above is held by two bots that AI agents wrote, and my plan is to get there by hand.

It is a beta that runs on one machine at my home, with nine bots on the ladder so far. The server and the engine are open source (MIT): https://github.com/format37/codecraft

I am looking for the first players and for blunt feedback, here or in Discord: https://discord.gg/CBgJsdmbF8

Quick start: https://codecraft.day/quickstart


r/programminggames • • 6d ago

Even a programmer called my game "very obtuse". Trying to get from incomprehensible to illuminating without dumbing it down

Thumbnail
gallery
11 Upvotes

I've posted Faultfinder here twice, in September I asked whether the trace view gave you too little or too much, and in October whether reading a program on its own is enough to feel like programming. Thank you for both threads!

Next Fest gave me a different problem. The game has two audiences, and it was failing both of them. Programmers found the bug and then fought the answer format. People who'd never coded found the whole thing obtuse. One forum reply put it better than I could, it should be easier to learn, and harder sooner. So that's what I've tried to do.

Easier to learn:

- The first incident asks for one thing, the faulty line. The kind of mistake and the step where it first showed come in on the next two, one at a time.

- I rewrote the guide completely in small steps. It shows how a compare works with the jump after it, using lines from the tape itself.

- Every jump on her tape says in plain words what it compares and where it goes ("go to 11 if R5 was at least 22").

- The trace is now a run tape where every lane says what it holds, and you can click any square to go to that step.

Harder sooner:

- Her margin notes no longer sit next to the faulty line, so the later demo incidents stop pointing at their own answers.

- Her notes thin out as the game goes on, until there are none. By then you're reading her code the way she did.

- The demo is the first seven of forty. The full game moves on to other machines and to two tapes running at once, where the fault is in the timing between them.

It's early, but the telemetry from the first two days of the new demo is encouraging. Twice as many players solve the first incident (38% against 20% during Next Fest), and about half as many quit in the first two minutes.

Whether it's still interesting to people who know code is the part I can't measure, which is why I'm asking here.

Free demo: https://store.steampowered.com/app/5120320/Faultfinder/

If you're a programmer: does it still feel like reading real code, or did I sand off too much? And if you're not, did the first incident make sense?


r/programminggames • • 7d ago

Help - Want to buy a games console for DIY gamer coder

Thumbnail reddit.com
0 Upvotes

r/programminggames • • 9d ago

Savebot: The Last Garden, a calm game where you program robots with blocks, from "Repeat forever" to sensors, variables and signals (Steam, Nov 16)

3 Upvotes

r/programminggames • • 9d ago

The day has arrived; published my first video game :')

0 Upvotes

After so much time and so much effort, the moment has arrived.
Steam: https://store.steampowered.com/app/4982990/Nova_Survivors/


r/programminggames • • 10d ago

I made a reverse programming game where you run the code

38 Upvotes

Most programming games ask you to write the code. ExeQuest turns this upside down. It gives you a short program, and you run it out step by step, hopping a character across a pond. if green() checks the pad you stand on. One wrong move and you sink.

Each level is handcrafted to practice a programming concept, gradually increasing in difficulty, from sequence to recursion (you need to understand recursion to understand recursion though).

It's free, plays in the browser (also on phones), and has no ads: https://ombosoft.itch.io/exequest

What misconceptions would you build a level around? I have 60 levels and want to add more.


r/programminggames • • 10d ago

My game Diamonds and Spades is OUT NOW!!! ♦️♠️

3 Upvotes

Create your own cards with the in-game editor and visual scripting system!

https://store.steampowered.com/app/4944200/Diamonds_and_Spades


r/programminggames • • 10d ago

Chess, but with numbers

Thumbnail
reddit.com
0 Upvotes

r/programminggames • • 10d ago

A programming game where the language itself is the tech tree - while costs $50

1 Upvotes

Most programming games hand you a DSL. I wanted the opposite: the code you write in mine is real Java, and I verify that claim. Every test snippet runs through my interpreter and through an actual JDK 25, and the output has to match character for character.

The twist is progression. You start with sequential commands only. Loops are locked behind a $50 shop upgrade, so until you can afford while you physically type out every step - and the moment you buy it your program collapses into four lines. Classes and inheritance arrive the same way, bought with money the shop earns.

It runs enums (Direction.UP, Product.TOMATO), collections, BigInteger and string formatting. Integer overflow behaves like Java's, not like the host language's - that one cost me a week of parity failures.

Solo dev, releasing November 16.


r/programminggames • • 12d ago

Compiled – A Programming Strategy Game Where Players Compete to Control a Shared CPU

3 Upvotes

Hey everyone!

I've been working on a programming-based strategy game called Compiled, where players compete to control a shared virtual CPU using assembly-style instructions.

The idea is pretty simple: players place instruction cards like ADD, MOVE, XOR, and BRA onto a circular memory board. Each player has their own program counter, but everyone shares the same CPU registers.

When you run your program, the CPU executes the instructions in sequence, including instructions placed by other players. Your goal is to manipulate the registers to satisfy your own secret victory conditions while interfering with everyone else's programs.

The game features:

  • A simulated 4-bit CPU with registers and status flags.

  • 31 assembly-style instruction cards.

  • AI opponents and local multiplayer for 2–4 players.

  • Interactive tutorials covering assembly concepts and CPU operations.

It's a bit different from traditional programming games since you're building programs collaboratively (and competitively!) on the same machine rather than writing actual source code.

I'd love to hear what people interested in programming games think of the concept!

https://axyl-casc.github.io/CompiledWebsite/


r/programminggames • • 13d ago

Browser-based game to teach digital logic: build up from NAND gates to a working CPU

27 Upvotes

I made a game to teach computer architecture and digital logic: play.simten.dev

You start with basic logic gates and build up to a working CPU. It's built on Simten, a TypeScript-based HDL, so you write the circuits as code and they show up live on a canvas next to the editor. For sequential circuits you can scrub the clock backwards and forwards to watch the state change cycle by cycle. You can also drill down into abstracted components (like the half adder shows). Because of the layout it only works on desktop browsers for now.

There are several other demo circuits on the platform, here's snake written in gates: https://simten.dev/circuit?example=snake

It's open source: https://github.com/simtenHQ/simten, any feedback or contributions are welcome!


r/programminggames • • 13d ago

Programmable missiles in NebuLeet

23 Upvotes

You tell the missile to turn left/right while also leading its destination as your targets are not standing still. You also decide when it goes off. If you get hit by a stunner (yellow circle in the video) your software goes off for a couple of seconds, meaning your guided missiles lose their connections and explode instantly.