Skip to content

Commit

Permalink
Merge pull request #121 from DiegoRBaquero/patch-1
Browse files Browse the repository at this point in the history
Update doc to note number of default gremlins
  • Loading branch information
fzaninotto authored Oct 3, 2017
2 parents 6fb50db + a1f65d0 commit 2735fa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ horde.strategy(gremlins.strategies.distribution()
)
```

Note that if using default gremlins, there are [five type of gremlins](https://github.com/marmelab/gremlins.js/blob/master/src/main.js#L12). The previous example would give a 0 value to last gremlin specie.

You can also use another strategy. A strategy is just a callback expecting three parameters: an array of gremlins, a parameter object (the one passed to `unleash()`), and a final callback. Two other strategies are bundled ([allTogether](src/strategies/allTogether.js) and [bySpecies](src/strategies/bySpecies.js)), and it should be fairly easy to implement a custom strategy for more sophisticated attack scenarios.

### Stopping The Attack
Expand Down

0 comments on commit 2735fa5

Please sign in to comment.