Skip to content

Human Resource Machine outbox generator for testing and benchmarking solutions

Notifications You must be signed in to change notification settings

atesgoral/hrm-level-outbox-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm Build and Deploy

hrm-level-outbox-generator

Human Resource Machine inbox generator for testing and benchmarking solutions.

Generates the outbox that is expected for a given level and inbox.

Methods

.generate(levelNumber, 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.

Example

var generator = require('hrm-level-outbox-generator');

// Tripler Room
var outbox = generator.generate(8, [ 2, 4, 0, -5 ]); // [ 6, 12, 0, -15 ]

About

Human Resource Machine outbox generator for testing and benchmarking solutions

Resources

Stars

Watchers

Forks

Packages

No packages published