0.0.3 • Published 11 months ago

binmat v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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-cf51bad

11 months ago

0.0.4-1dc573f

11 months ago

0.0.4-86481c4

11 months ago

0.0.4-7fec89f

11 months ago

0.0.4-016c6ed

11 months ago

0.0.4-18d8a86

11 months ago

0.0.4-6ddc7de

11 months ago

0.0.4-1f9099b

11 months ago

0.0.4-e41f99f

11 months ago

0.0.4-4692036

11 months ago

0.0.4-313dcb7

1 year ago

0.0.4-17719e3

1 year ago

0.0.4-00eb871

12 months ago

0.0.4-a77b941

1 year ago

0.0.4-fec0548

1 year ago

0.0.4-140be5e

12 months ago

0.0.4-53f8351

1 year ago

0.0.4-2243067

1 year ago

0.0.4-2e9a053

1 year ago

0.0.4-30a3444

1 year ago

0.0.4-e0531c5

1 year ago

0.0.4-7e250d3

1 year ago

0.0.4-962c6b5

1 year ago

0.0.4-7ca7fd4

1 year ago

0.0.4-82dba00

1 year ago

0.0.4-41297a8

1 year ago

0.0.4-ef70865

1 year ago

0.0.4-d6eb4ff

1 year ago

0.0.4-a64f38c

1 year ago

0.0.4-047fe38

1 year ago

0.0.4-f98b9ac

1 year ago

0.0.4-6bb389b

1 year ago

0.0.4-208efec

1 year ago

0.0.4-799d69c

1 year ago

0.0.4-7862437

2 years ago

0.0.4-28ae731

2 years ago

0.0.4-298bc12

2 years ago

0.0.4-1ef9514

2 years ago

0.1.0-f92c628

2 years ago

0.0.4-a4e1255

2 years ago

0.1.0-d909791

2 years ago

0.1.0-4b753de

2 years ago

0.1.0-7430bd9

2 years ago

0.1.0-85d4744

2 years ago

0.1.0-c483992

2 years ago

0.1.0-6a0bad2

2 years ago

0.1.0-3b3826c

2 years ago

0.1.0-86af3a3

2 years ago

0.1.0-b4b9f51

2 years ago

0.1.0-5b3ad45

2 years ago

0.1.0-bd2d006

2 years ago

0.1.0-86b964a

2 years ago

0.1.0-a9a8cd2

2 years ago

0.1.0-36819bb

2 years ago

0.1.0-f969af8

2 years ago

0.1.0-dbde8ef

2 years ago

0.1.0-e5194ae

2 years ago

0.1.0-c3e7203

2 years ago

0.1.0-3b135b4

2 years ago

0.1.0-ef25770

2 years ago

0.0.3

2 years ago

0.1.0-97623ac

2 years ago

0.1.0-a388459

2 years ago

0.0.2

2 years ago

0.1.0-e2a2c03

2 years ago

0.1.0-03a8920

2 years ago

0.1.0-3122ef0

2 years ago

0.1.0-438cccd

2 years ago

0.1.0-cfd0637

2 years ago

0.0.1

2 years ago

0.1.0-698fe43

2 years ago

0.1.0-8997659

2 years ago

0.1.0-7b7f385

2 years ago

0.1.0-a42ec5a

2 years ago

0.1.0-1276f29

2 years ago

0.1.0-3f14268

2 years ago

0.1.0-4ce7af8

2 years ago

0.1.0-745481c

2 years ago

0.1.0-5e26d8d

2 years ago

0.1.0-348847a

2 years ago

0.1.0-f14ca2d

2 years ago

0.1.0-7f5950b

3 years ago

0.1.0-aac024c

4 years ago

0.1.0-b055a68

4 years ago

0.1.0-b08fa1c

4 years ago

0.0.0

4 years ago

0.1.0-53b5ee0

4 years ago

0.1.0-4ee4a83

4 years ago

0.1.0-5465b56

4 years ago

0.1.0-c0ecd78

4 years ago

0.1.0-e604af2

4 years ago

0.1.0-dd4d06d

4 years ago

0.1.0-d051e60

4 years ago

0.1.0-a831836

4 years ago

0.1.0-b2ad597

4 years ago

0.1.0-3b10b51

4 years ago

0.1.0-5d26de3

4 years ago

0.1.0-3184921

4 years ago

0.1.0-3df5872

4 years ago

0.1.0-2df02b4

4 years ago

0.1.0-84e25d6

4 years ago

0.1.0-91e981e

4 years ago

0.1.0-0ec2888

4 years ago

0.1.0-c3770bd

4 years ago