Pr

Pragma Twice – A dystopian sci-fi themed programming game

Hacker News

Pragma Twice – A dystopian sci-fi themed programming game

Hey HN, I'm Bryan. I released Pragma Twice earlier this week in anticipation for Steam's "Programming Fest". Pragma Twice is a programming puzzle game in the same vein as Untrusted ( https://untrustedgame.com/ ). You have to write real JavaScript code to incrementally improve your playable character's "kernel" over the course of the game. Beating levels autonomously (without keyboard inputs) reveals a competitive time/code golf aspect to the game. I started developing Pragma Twice over 4 years ago after playing Untrusted and loving it. It took so long to develop because I'm not a full time game developer... between my actual job, my kids, and my own self-motivation, it's taken a lot longer than I originally hoped to get this game shipped! It's definitely what you might call a passion project. Anyway, I plan to keep iterating on it, so give it a spin and let me know what you think! A few technical details/challenges: - The game was originally written in vanilla JavaScript, but I later converted it to TypeScript (which had an astonishing ROI) - Uses PixiJS for the graphics and a custom game engine built around Web Workers + SharedArrayBuffer for sandboxing and guarding against things like infinite loops - The web version is hosted on GitHub Pages, which was challenging because of the SharedArrayBuffer requirement (I use https://github.com/gzuidhof/coi-serviceworker to work around this) - The linux/windows versions use Electron - Uses CodeMirror for in-game editor/console - Levels built with LDtk - Automated game testing with Puppeteer Steam: https://store.steampowered.com/app/3528840/Pragma_Twice/ Dev Notes: https://www.bryanpg.com/games/pragma_twice

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: started · Missing: supports, reddit linkedin, podcasting
89%89% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: game engine, io · Missing: https docs, excited, just released
66%66% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: notes, code · Missing: mac, agents, macos
51%51% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
43%43% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
41%41% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ma
Martin Gardner's Racetrack – programming game44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Martin Gardner's Racetrack – programming game

Hacker News1
Ar
Arcane Assembly: Spell programming game59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Arcane Assembly: Spell programming game

Hacker News11
As
AssemblyArena – an assembly programming game68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AssemblyArena – an assembly programming game

Hacker News1
Pr
ProgPac programming game.45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ProgPac programming game.

Hacker News2
AI
AI programming game41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI programming game

Hacker News11
Wa
WasmBots – A WebAssembly-powered programming game80%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

WasmBots – A WebAssembly-powered programming game

Hacker News5
A
A simple virus-programming game54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A simple virus-programming game

Hacker News3
Co
CodeJunkers – HTML5 Loot-Based Programming Game65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CodeJunkers – HTML5 Loot-Based Programming Game

Hacker News6
Co
Coderoulette, a pair programming game for developers79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Coderoulette, a pair programming game for developers

Hacker News42
Le
Leaps, pair programming over LAN70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Leaps, pair programming over LAN

Hacker News1