r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

Show parent comment

16

u/CAPS_LOCK_OR_DIE Oct 07 '26

Its actually very cool to poke around in if you have the opportunity. There's some spaghetti, but overall its a pretty clever codebase.

1

u/CheezeyCheeze Oct 08 '26

What makes it clever? Link?

3

u/CAPS_LOCK_OR_DIE Oct 08 '26

The way they handle block and damage I found to be an interesting solution. Rather than making each card have a block value and damage value, Block and Damage are a separate class that gets called be each card as needed.

I'm no game dev, so I thought that was a neat way to handle it. The code base isn't anywhere I can link to that I know of. I found this out poking through the local game file on my desktop.