0.0.3 • Published 14 days ago

binmat v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

Binmat Simulator

Test Lint

If you need any help, open an issue.

How to Build for Hackmud

  1. Install Node.js, clone this repo, and open a command window in the newly cloned repo folder.
  2. Run npm install.
  3. Run npm run push-script.
    • This will print the number of characters needed to upload the script.
  4. Open hackmud, pick a user, and run #up binmat.

Using To Test Your Binmat Bot

  1. Install Node.js, create a new folder, and open a command window in that folder.
  2. Run npm init -y.
  3. Run npm install binmat.
  4. Create an index.js file in that directory.
  5. 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: "--" })
    }
  6. Run node index.js.

0.0.4-7862437

14 days ago

0.0.4-28ae731

14 days ago

0.0.4-298bc12

20 days ago

0.0.4-1ef9514

20 days ago

0.1.0-f92c628

29 days ago

0.0.4-a4e1255

28 days ago

0.1.0-d909791

29 days ago

0.1.0-4b753de

1 month ago

0.1.0-7430bd9

1 month ago

0.1.0-85d4744

1 month ago

0.1.0-c483992

1 month ago

0.1.0-6a0bad2

1 month ago

0.1.0-3b3826c

1 month ago

0.1.0-86af3a3

1 month ago

0.1.0-b4b9f51

1 month ago

0.1.0-5b3ad45

1 month ago

0.1.0-bd2d006

1 month ago

0.1.0-86b964a

1 month ago

0.1.0-a9a8cd2

1 month ago

0.1.0-36819bb

2 months ago

0.1.0-f969af8

2 months ago

0.1.0-dbde8ef

2 months ago

0.1.0-e5194ae

2 months ago

0.1.0-c3e7203

2 months ago

0.1.0-3b135b4

2 months ago

0.1.0-ef25770

2 months ago

0.0.3

2 months ago

0.1.0-97623ac

2 months ago

0.1.0-a388459

2 months ago

0.0.2

2 months ago

0.1.0-e2a2c03

2 months ago

0.1.0-03a8920

3 months ago

0.1.0-3122ef0

3 months ago

0.1.0-438cccd

4 months ago

0.1.0-cfd0637

4 months ago

0.0.1

4 months ago

0.1.0-698fe43

4 months ago

0.1.0-8997659

9 months ago

0.1.0-7b7f385

9 months ago

0.1.0-a42ec5a

9 months ago

0.1.0-1276f29

9 months ago

0.1.0-3f14268

9 months ago

0.1.0-4ce7af8

9 months ago

0.1.0-745481c

9 months ago

0.1.0-5e26d8d

9 months ago

0.1.0-348847a

9 months ago

0.1.0-f14ca2d

9 months ago

0.1.0-7f5950b

1 year ago

0.1.0-aac024c

2 years ago

0.1.0-b055a68

2 years ago

0.1.0-b08fa1c

2 years ago

0.0.0

2 years ago

0.1.0-53b5ee0

2 years ago

0.1.0-4ee4a83

2 years ago

0.1.0-5465b56

2 years ago

0.1.0-c0ecd78

2 years ago

0.1.0-e604af2

2 years ago

0.1.0-dd4d06d

2 years ago

0.1.0-d051e60

2 years ago

0.1.0-a831836

2 years ago

0.1.0-b2ad597

2 years ago

0.1.0-3b10b51

2 years ago

0.1.0-5d26de3

2 years ago

0.1.0-3184921

2 years ago

0.1.0-3df5872

2 years ago

0.1.0-2df02b4

2 years ago

0.1.0-84e25d6

2 years ago

0.1.0-91e981e

2 years ago

0.1.0-0ec2888

2 years ago

0.1.0-c3770bd

2 years ago