Skip to content

Instantly share code, notes, and snippets.

@backnotprop
Created October 27, 2017 17:25
Show Gist options
  • Save backnotprop/c30e2d6ab720028f09257fefe4931217 to your computer and use it in GitHub Desktop.
Save backnotprop/c30e2d6ab720028f09257fefe4931217 to your computer and use it in GitHub Desktop.
var StableMatching = (function (data) {
let _DB = data;
// this is stage 1
function _proposalStage(refresh){
...
}
return {
init: function(db) {
_DB = db;
},
doStageOne: function() {
...
},
testStageOne: function() {
...
}
};
})();
let personPreferredLists = parseDb(dummyDb);
StableMatching.init(personPreferredLists);
StableMatching.doStageOne();
StableMatching.testStageOne();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment