Human Resource Machine inbox generator for testing and benchmarking solutions.
Generates the outbox that is expected for a given level and inbox.
levelNumber - Number. The level number (1-41).
inbox - Array. The inbox contents. Must be suitable for the level. You can use hrm-level-inbox-generator, grab examples from hrm-level-data or simply craft your own input.
returns - Array. If the generator doesn't support the given level, a null
is returned.
var generator = require('hrm-level-outbox-generator');
// Tripler Room
var outbox = generator.generate(8, [ 2, 4, 0, -5 ]); // [ 6, 12, 0, -15 ]