this post was submitted on 29 Feb 2024
115 points (100.0% liked)

196

17889 readers
205 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 1 year ago (12 children)

Lol ok I'll ask: wtf is that code?

[–] [email protected] 27 points 1 year ago (2 children)

The code is for an incremental RPG programming game called Bitburner, which uses a version of JavaScript that has some additional game-specific APIs and restrictions (the game originally ran in a web browser)

This code in particular is a (flawed) solution to the first problem the game throws at you, which is finding a way to hack as much in-game money as possible from in-game servers. (The problem is more complicated than it appears at first glance, and I'll try to elaborate if you ask.)

Urghh, now I must post before I leave...

[–] aldalire 3 points 1 year ago (1 children)

No it’s actually to compute the threads required for a hghw batching script :)

[–] [email protected] 4 points 1 year ago

My bad, was wondering why it was called "recon"... HACK GROW HACK WEAKEN? What on earth is this madness? Did... did you... did you do this on purpose?

Anyways, I think I'm going to write the essay despite no one asking.

[–] WeLoveCastingSpellz 2 points 1 year ago* (last edited 1 year ago) (1 children)

I am trying to.get into the game but I am very clueless do I have to learn javascript before continueing or will it teach me

[–] aldalire 1 points 1 year ago

there's documentation , but it's a good way to learn javascript imo. It gives you an environment to interact with javascript and that's a perfect place to go hands-on and learn programming :)

load more comments (9 replies)