These are the scripts I used to beat the BitBurner game.
Major updates have been made to the codebase, introducing a new automated workflow based around the 01.js startup script. This update shifts away from manual deployment towards a more streamlined approach.
Key additions:
- New automated startup system via
01.js - Added
hackerSpider.jsfor intelligent hacking management - Enhanced
serverScanner.js - Added a few contract solvers for the contracts I have done.
The core workflow is now:
- Run
01.jsto initialize all core systems:crackerSpider.jsfor getting rootAccesshackerSpider.jsfor optimizing the hack looppurchaseServers.jsfor private server purchasingstarters/buyTORRouter.jsto automate the purchase of TOR Router, which then triggers the automation of Executables purchase.
After this, I just start with mugging, then faction rep farming once available.
deployHack.js remains available as a legacy tool for manual deployment when needed, but is no longer part of the primary workflow.
The primary entry point for the system:
run 01.jsThis single command initializes the core scripts and begins automated operations.
Advanced resource management that:
- Automatically calculates optimal thread distribution
- Selects the most profitable targets
- Maintains efficient RAM usage across all servers
- Periodically reviews and adjusts strategy
Server infrastructure management:
run purchaseServer.js [ramPotency]- Automatically purchases and upgrades servers
- Scales based on available resources
- Supports custom RAM growth targets
info.js: Server analysisserverScanner.js: Network scanning functionslogManager.js: Logging tool, right now only used for crackerSpider
Located in /contracts/:
caesar_cypher.py: Encryption solvermax_subarray_sum.py: Array optimizationtriangle-minimum-path.py: Path finding
Those were all quick scripts developed to beat the challenges of the game. Time is the biggest constraint, I was not focused on optimization, but just getting the job done. :)
There are a couple of scripts I borrowed, credit is given to the script's first lines.