Show HN: Single-Instruction (Subleq) Programming Game
jaredkrinke.itch.io
jaredkrinke.itch.io
I shared this previously when I added a Steam version [1] with achievements, music, etc. (the Steam version is also free). Most recently, I added native Linux support to the Steam version, due to feedback from players wanting friend leaderboards on Linux.
The source code is on GitHub [2], in case anyone is curious (but note that it's not Open Source--I'm still deciding how to license it).
Let me know if you enjoy it!
[0] subleq is "subtract, and branch if <= 0"
I also bought Opus Magnum because it looked fun too and was on sale, but I fear it'll grab me the same way. Luckily it's summer so I'm not inclined to play much, and when I do I'm just throwing myself repeatedly at Malenia in Elden Ring (a strategy which isn't working out v well) :-D
Puzzle games (although it's true for other games as well) are hard to return to.
They really found a wonderful niche in building these kinds of games, and seem to execute them really well.
subleq <a> <b> [<c>]
why does the mnemonic "subleq" have to appear? All it is saying is "do the one and only instruction on operands A, B and possibly C".Thus:
<a> <b> [<c>]
would be a better assembly language format.I left the requirement in to make it look more like typical assembly language and also as a reminder of what it’s doing (and making the distinction between “.data” a little more obvious). I also thought the tedium of typing “subleq” fit nicely into the theme of the game.
So I guess it was more of an aesthetic decision.
Good luck with this!
https://github.com/jaredkrinke/sic1/tree/master/sic1
Wonder if this can be easily built on Mac...
The Linux version uses Electron and the only native code is a tiny Steam integration library that only uses C++11 functions, so it might be possible to port to macOS without too much difficulty.
Or maybe I should just find a cheap Mac Mini…
Edit to add: in case it’s not obvious, the browser version is the same, minus Steam integration (friend leaderboards, Steam Cloud).