my late night recreational vibe coding session is now a library: https://github.com/jb55/droptables

droptables is a new rust library for sampling discrete probability distributions in O(1) time using Walker Alias tables generated at compile time!

It's pretty powerful and near optimal in terms of sampling performance, here's a demo of it simulating an OSRS boss:

code: https://github.com/jb55/droptables/blob/master/examples/osrs.rs

ok back to work...

nostr:note1jqzngqsqyy5trdxkhmr0pesy042909eeklcfczulh4pnrgqme96qy3nrem

Reply to this note

Please Login to reply.

Discussion

how about a nostr-based MUD using this crate? could use nip-29 maybe.

stay up all night again

i want to make a nostr game so bad

terminal MUD with an item marketplace that uses zaps lol

Back in the day I used to host a spigot Minecraft server, I had some dreams about build some sort of NANO-backed economy but I never realized it, mainly because of the centralized nature of a Minecraft Server. On a second thought, could’ve created a forge plugin to at least address the custody issue.

Anyway, how do you think a “nostr game” should work?

Make it using a PEPE 🐸

What would a nostr game be? 🤔🤔

social with rpg elements would be cool

Well, you have to make it now:)

i’ll have to talk to the board. Oh wait i am the board.

Important question for you: do you remember the Falador Massacre?

of course

I’m going to be honest, I half expected you to have helped conspired.

Durial321 deserves his account back. Anyone would have done the same in his position.

#justiceforduriel321

Listening to Yr stream on Walker

Funny. I just began working on a Runelite plugin myself 😂

Ironman qol.

Hides drops that aren't yours and shop items that are overstock.

On another note, let's build osrs on nostr. Each game tick is an event.

Inventory and bank are an event.

Etc.

i’m in. nostr mmorpg

For real though. If you want to get a lot of people on nostr, give them something to log into and make progress with everyday. Logging in the check a feed only keeps people interested for a week at most. Then they just go back to their comfy walwld gardens. Gotta get their friends here too. A game where you can play and compare stats is a great way to build a community.

Getting zaps is progress towards a bigger stack....

That's if you're a poster. Turns out most people actually aren't posters, just readers. Not to mention you could probably go dig holes for an hour and make more money to buy more sats then you've made on nostr your entire time here.

Hole digging only gets minimum wage around these parts. I've made over 15 US Dollars worth of sats from just three posts in a week. Some talk about it. Some ARE about it.

You let me know when Zaps pays your rent

Sounds like you're not stacking hard enough. I work a job to stack Sats AND post online to earn sats. My sats will never pay my mortgage, cause thats due in fiat and I'll never sell for that. My sats are for my future grandkids. My stack aint shit today but it'll pay their mortgages and buy em a couple trucks in a few decades.

Its ok bro. I still wish you well and hope you never lose your seed phrase.

The way the world is going i just hope we dont stay out of internet then all our future plans for bitcoin will be just a pile of goo... 😫🥲

Don't worry about my stack. Just focus on your own.

Getting zapped requires work. Or what we colloquially call a job...

Hah you mean gamification and stickiness eh

I’d grind

Have you seen this already?

nostr:nevent1qqs9tm7rrc6fderaz3f55690jlfay4ezq0032ehzyqsd880g2wkrvuqpz3mhxw309akx7cmpd35x7um58g6rsd3e9upzqh4yvjqytwcl7g3x2hwaxmndemwugdvscfsfp3yxhmecaazsmfdaqvzqqqqqqyg86fre

Interactive story/game by nostr:nprofile1qqs9afryspzmk8ljyfj4mhfkumwwmhzrtyxzvzgvfp477w80g5x6t0gpzamhxue69uhhyetvv9ujumn0wd68ytnzv9hxgtcppemhxue69uhkummn9ekx7mp0qywhwumn8ghj7mn0wd68ytnzd96xxmmfdejhytnnda3kjctv9uz87n0z

Some explanation/write-up of challenges

nostr:nevent1qqsz06jeyr363fqxr9nl2y3jnk444zzq2y4cn8l7tn7kdjt2y8mdlpcpzemhxue69uhhyetvv9ujumt0wd68ytnsw43z7q3qt6jxfqz9hv0lygn9thwndekuahwyxkgvycyscjrtauuw73gd5k7sxpqqqqqqzry9rgt

i think a "creative" world would make the most sense, not a competitive world. you would want a world where it would be ok if users create their own room/items/etc without a central node dictating the rules.

That questr thing was just to get my mind off what my thoughts where actually drifting towards, which are schemes for an open massive multiplayer online turn based rpg. Got a list of varients on the same basic idea. I did a half assed write-up a while back, let me dig

You have no idea how much ive bothered the jungle spirit with all of this stuff. Poor guy.

Anyway, i do believe it could work, and it would fullfill vitaliks dream...perhaps he will ditch ethereum 😏

Disagree, its all in the restraints. There are still people playing Diablo 2 after all these years and get happy when they find particular items. All of that only has 'meaning' because all of them commit to the same constraints (i.e. the game engine).

Also, in non of what i propose is there any central node, just game rules. People could decide to play a different or modded game obviously

maybe could work, but depends on the game type

Probably, but even then most players would want a central place/node with some rails to guide them, give them basic ideas and experiences before they are launched into an open world where they can unleash their creativity

I saw this in the nostr game dev telegram group.

I've been playing with the idea of using cashu tokens as randomness for game inputs. You can find my vibes at https://GitHub.com/EthnTuttle/manastr

essentially the mint becomes a game authority and using turn based publishing of linked notes, the game can be validated as true to rules. Additionally, you can use commit+reveal for turns that can't be changed but still published asynchronously.

This also offers a way for the game authority to make money by taking in more sats than it outputs in a very transparent way.

Happy to chat sync to further elaborate my idea.