class ScoreKeeper { constructor() {} score(proposer) { return { ...proposer } } } module.exports = class MatchMaker { constructor(settings) { this.proposer = settings.proposer // Score main profile this.keeper = new ScoreKeeper() this.proposer.score = this.keeper.score(this.proposer) this.profiles = this.getProfilesFor(settings) } runPrematch(settings) { // grab all profiles form the db // grab all responses // grab all response keys // create a full response object // create a full profile of responses const unscreenedProfiles = [] const screenedProfiles = [] for (const profile in unscreenedProfiles) { // Do something here if (!settings) { return } screenedProfiles.push(profile) } return screenedProfiles } matchFor(proposer, profiles, settings) { // Do something here return this.runPrematch(profiles, settings) } scoreProfiles(profiles) { const matchScores = [] for (const profile in this.profiles) { const scored = this.keeper.score(profile) matchScores.push(scored) } return matchScores } }