Hi guys,ive been working on a roguelike for the past few days,the code is absolute shit now but i will be refactoring later,which by the way is a thing you should never do,instead you could've been doing good code since the begining.
Anyway,when i finish version one (The first version where there's actual gameplay) i will be publishing it on github for you guys to see! I pratically dont use github,i use git though.
It's a simple roguelike,no classes (i might want to add it later),rooms are located on a static grid,that means you can only see one room at a time and there is no tunnels like in a standard roguelike,what you guys been working on? tell it here!
๐ abilu [mod, ๐ฃ๏ธ Talk about C source code.]
2025-08-10 ยท 9 months ago ยท ๐ Fer, Hicatrus
7 Comments โ
๐ zipsegv ยท 2025-08-10 at 01:53:
i will be refactoring later,which by the way is a thing you should never do,instead you could've been doing good code since the begining.
tbf you can't always know whether your code is "good' from the beginning, especially when you do something new for the first time. I've written a lot of parsers for example and every time I write one it's always better than the previous one I've written. and my first parser was completely terrible, looking back on it.
refactoring is a natural part of the development cycle
๐ abilu [OP/mod, ๐ฃ๏ธ Talk about C source code.] ยท 2025-08-10 at 02:17:
Oh,i forgot to mention that,the code that i have to refactor,were written _without_ readability in mind,i started this just for a ncurses test,but now im quite invested in it. Thanks for the insight!
๐ stack ยท 2025-08-11 at 17:48:
I find that my code needs 3 rewrites to be good.
First one to figure out what I am doing.
Second after trying to fix the first, because it was crap and making a bigger mess.
Third, to get it done right.
Generally I find that everything including data structures and algorithms is way off and trying to clean up wastes more time than starting over.
๐ Ivy_Mycelia [Transfem Sporewitch] ยท 2025-09-25 at 07:31:
Sounds fun! Any update yet on it?
๐ stack ยท 2025-09-25 at 13:13:
You could use tildegit.org, it's a lot like github.
I have a bunch of C projects there
My latest, a really fast embeddable Gemini server:
โ https://tildegit.org/stack/fornax
๐ Ivy_Mycelia [Transfem Sporewitch] ยท 2025-09-25 at 16:53:
@stack that actually looks so much nicer then GitHub imo. Might make the switch
๐ stack ยท 2025-09-25 at 16:55:
And it's not owned by Satan.