Xs of Y – roguelike that names itself every run. Written in 4kLoC

github.com

162 points by andsoitis 4 days ago


seabass-labrax - 7 hours ago

I killed myself with a flaming spear and the game said this:

> FATAL ERROR: [program exited] "cannot subtract nil and let-go.lang.Int", :data {:trace ("game-loop (<unknown>)" "game-loop (<unknown>)" "update-world (<unknown>)" "run-until-player-turn (<unknown>)" "creature-turn (<unknown>)" "update-ai-state (<unknown>)" "distance (<unknown>)")}}

A fatal error indeed!

marcingas - 9 hours ago

Author here! Thanks for posting! This game is written in a Clojure-like programming language I've made. So this is a (B)rogue-like in a Clojure-like :)

What I think is interesting is that this game computes the entire world state each tick and does so efficiently thanks to persistent data structures.

To anyone who dared to fire it up: thank you for playing, I'm curious what you think!

cheald - 5 hours ago

"Applied theology with inadequate safety margins" might just be my favorite difficulty description ever.

fhn - an hour ago

let's not have q=quit. most rouge games have q=quaff. I mean if people want to quit, they can just refresh or close the tab. At the very least, ask.

Jeremy1026 - 9 hours ago

Gets stuck in a redirect loop with the message:

> Interactive input unavailable (no cross-origin isolation).

> Deploy coi-serviceworker-js alongside this file.

in Safari on 26.4

Parcival - 10 hours ago

Pretty fun! I keep getting instantly killed by things though and I'm not sure why, possibly a bug.

gchamonlive - 10 hours ago

Reminds me a lot of NetHack, good times

pgt - 8 hours ago

Not a Rogue-like specialist, it's hard – I haven't made it out of level 1 yet.

sandoze - 10 hours ago

No credit for the art direction and inspiration? Brogue?

Or did I miss the attribution?

* Edit: I’m not looking for the downvotes or to stir things up. I’m simply calling out that this is a small niche community we notice these things, we’re very free with our code, and copy is a compliment, but so is attribution.

The author wasn’t so much inspired the by Brogue style, but copied it directly down to the animations and ASCII.

Razengan - 10 hours ago

Noun of Noun

bennettpompi1 - 10 hours ago

fun project!

otikik - 10 hours ago

Found it a bit annoying having to press 'i' at the start in order to equip the dagger and armor that were on my backpack, but well done.

butz - 8 hours ago

[dead]

hope2 - 5 hours ago

[dead]

binary0010 - 8 hours ago

Isn't this the kind of thing you can essentially fully offload to Claude code these days? Don't really get the point of these tiny primarily llm generated game clones tbh.