5 votes

What programming/technical projects have you been working on?

This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

2 comments

  1. pocketry
    Link
    My friend is creating a small tabletop RPG. He asked for help to balance combat and since I like math I offered to help. Instead of trying to create a formula or formulaic statistics, I'm trying...

    My friend is creating a small tabletop RPG. He asked for help to balance combat and since I like math I offered to help. Instead of trying to create a formula or formulaic statistics, I'm trying to create a model in python to easily input characters and monsters based on the rules and run numerous combat encounters.

    I've created a class to handle players and monsters. I pull in instances of these from json files that are like character sheets and monster stat blocks. I also created a class to manage the encounter because I want to have the model run hundreds of encounters to see a distribution of outcomes. Right now it will run one encounter and output the progress to the terminal. It doesn't save the outcome in a usable format yet.

    I have a decent idea of where I want to go next, but don't know how to do it yet. I need to have it run many encounters and keep track of the outcomes so we can review the results. Then we'll need to make adjustments to the players and/or monsters. It also only really handles 1st level characters and no complexity of combat options. Players hit monsters and that's it. I've been talking with my friend to try to make simplifying assumptions to that we can actually make progress. Overall this has been a fun way to write a little code, which I don't normally don't do.

    Any suggestions are welcome.

    3 votes
  2. bub
    Link
    A friend and I are writing a multiplayer space game in Zig. I'm still not over the honeymoon period with Zig, and I might never be. Writing an entity component system as a generic that takes in...

    A friend and I are writing a multiplayer space game in Zig.

    I'm still not over the honeymoon period with Zig, and I might never be. Writing an entity component system as a generic that takes in component declarations is so much more fun in Zig than it was in C++. The whole build system, all generics, meta-programming - everything - is just regular Zig. No meta language, no ugly shell-script-based build tools, very few headaches. A clear view of the entire "tech stack" involved comes naturally.

    I can't say enough about the language. If you already like C, it's an easy sell.

    The game itself is something we plan to actually try to publish commercially, so I probably won't describe much of it at this point, but I did want to gush about the language a bit.

    2 votes