This project implements the hack algorithm mentioned on the official website: HWGW (Hack-Weak-Grow-Weak algorithm)
- First need to compile the Typescript files and put them into the game, check vscode-template for more details
- The algorithm implemented will calculate threads for best hack/grow the server
- Global settings: Edit the Config file before running
dispatcher.js
is the core script, basic command for hackingn00dles
onhome
:
run /projectA/controller/dispatcher.js n00dles home
Aside from core automation code of Bitburner, in this repo, we provide a framework for mocking Bitburner in-game APIs.
Hope the essence of TDD (Test-Driven-Development) can be adopted among the Bitburner development community as well!
Please check the test folder, there are some examples for how to use the mocking framework.
Thanks for the great work of vscode-template