diff --git a/source/Predictor.js b/source/Predictor.js index 6ac738b..3149a66 100644 --- a/source/Predictor.js +++ b/source/Predictor.js @@ -7,10 +7,17 @@ export default class Predictor { journal; supervisor; - constructor() { + constructor(config) { this.score = 0; this.journal = new Journal(); - this.supervisor = new Supervisor([new Daemon(3, 3)]); + const daemons = config.daemons.map(daemonConfig => { + return new Daemon( + daemonConfig.human, + daemonConfig.robot, + daemonConfig.epsilon || 0.01 + ); + }); + this.supervisor = new Supervisor(daemons, config.epsilon || 0.01); } pass(value) {