Live data from Hacker News

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

github.com

41–50 of 99 posts

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

#41

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!

Little buggy (dying from things not on the screen), but I love the dwarf fortress esque vibes

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

#42
post #12

Earlier quoted context omitted.

I see you haven't played Noita!

No, I think I'm seeing the same bug. Time seems to sometimes subjectively freeze: ─── Messages ─── Old man shuts the gate behind you. You hear him mutter "every time, I swear..." You must retrieve the Amulet of Lost Semicolons. You kill the rat! (sneak attack!) The rat squeals and dies! You wait. (x10) ᛜ ᚢ You kill the rat! (sneak attack!) ᛉ The rat squeals and dies! You hear muttering. ᛋ You hear muttering. You hear…

I think I fixed it!

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

#43
post #12

Earlier quoted context omitted.

I see you haven't played Noita!

Noita was another inspiartion when making this - the inverted power curve is real! Start squishy, become a god, die anyway.

A wand related accident has to be the number one cause of a Noita run ending.

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

#44
post #12

Earlier quoted context omitted.

I see you haven't played Noita!

No, I think I'm seeing the same bug. Time seems to sometimes subjectively freeze: ─── Messages ─── Old man shuts the gate behind you. You hear him mutter "every time, I swear..." You must retrieve the Amulet of Lost Semicolons. You kill the rat! (sneak attack!) The rat squeals and dies! You wait. (x10) ᛜ ᚢ You kill the rat! (sneak attack!) ᛉ The rat squeals and dies! You hear muttering. ᛋ You hear muttering. You hear…

I see the same but only in browser / wasm. Also notice that the mobs dont move in browser mode. Local via lg in console works great though.

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

#45

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!

Little buggy (dying from things not on the screen), but I love the dwarf fortress esque vibes

There was a commit a few minutes ago that fixed the instakills for me

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

#47

Earlier quoted context omitted.

Little buggy (dying from things not on the screen), but I love the dwarf fortress esque vibes

There was a commit a few minutes ago that fixed the instakills for me

This was caused by a stdlib bug in the language, I bypassed it :D

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

#48

Earlier quoted context omitted.

Definitely a bug. I'll look into this at some point. Please note that this is not a finished game by any means. If anyone asked I'd call it a tech demo at this point :)

Seems to be that the sort function accepts a ternary predicate but then passes it to an implementation accepting a boolean one?

Yeah that was it, the let-go stdlib changed.

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

#49

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.

Is this a troll comment? I don't see where the author used AI to generate the code and if you don't see the point of experimenting with technology, you're on the wrong website.

You really don't see where the author uses ai? Pretty much everywhere, all the docs, the overview of the project, a LOT of the code is obviously primarily ai written, etc.

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

#50

Earlier quoted context omitted.

Is this a troll comment? I don't see where the author used AI to generate the code and if you don't see the point of experimenting with technology, you're on the wrong website.

You really don't see where the author uses ai? Pretty much everywhere, all the docs, the overview of the project, a LOT of the code is obviously primarily ai written, etc.

So the author used the latest and greatest development tech to create a unique little demo in their custom language. I'm unsure your point. You know what I don't use to program with anymore? Punch cards and Borland C++. The industry has evolved for better or worse.
Post reply on HN