binmat v0.0.3
Binmat Simulator
If you need any help, open an issue.
How to Build for Hackmud
- Install Node.js, clone this repo, and open a command window in the newly cloned repo folder.
- Run
npm install
. - Run
npm run push-script
.- This will print the number of characters needed to upload the script.
- Open hackmud, pick a user, and run
#up binmat
.
Using To Test Your Binmat Bot
- Install Node.js, create a new folder, and open a command window in that folder.
- Run
npm init -y
. - Run
npm install binmat
. - Create an
index.js
file in that directory. In that new file, paste in this template.
const { simulateGame } = require("binmat") // the first argument is the defender's brain // and the second is the attacker's brain // in this case we are using the same brain for both simulateGame(brain, brain, { timeLimit: 5000, // in milliseconds onMove: (state, binlog) => console.log(binlog.join("\n")) }) function brain(context, args, xform) { // you should fill this function with your brain code // xform() is the equivalent of #fs.binmat.x() xform({ op: "--" }) }
Run
node index.js
.
14 days ago
14 days ago
20 days ago
20 days ago
29 days ago
28 days ago
29 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago