Proposal: needs more randomization
Reached quorum 5-2 with 2 DEF votes
Adminned at 03 Oct 2018 00:22:48 UTC
Replace the text of “Master Control Program” with the following:
// MASTER CONTROL PROGRAM
var GNDT = `__GNDT`;
var MCPOutput = "";
var GNDTArray = [];
if (GNDT == "__" + "GNDT") {
printLine("Illegal execution? A GNDT dump must be provided.");
} else {
var GNDTLines = GNDT.split("\n");
GNDTLines.forEach(function(entry) {
GNDTArray.push(entry.split("\t"));
});
printLine("RESET " + randomPlayer());
for (var i = 0; i < 5; i++) {
var msg = "";
if (!randBetween(0, 5))
msg = "RESET " + randomPlayer();
else {
msg = "SET " + randomPlayer() + " ";
if (randBetween(0, 1))
msg += "INPUT";
else
msg += "OUTPUT";
msg += " TO " + randomChar() + randomChar();
}
printLine(msg);
}
}
function randBetween(x, y) {
return Math.floor(Math.random() * (y - x + 1)) + x;
}
function randomPlayer() {
return GNDTArray[randBetween(0, GNDTArray.length - 1)][0];
}
function randomChar() {
return String.fromCharCode(randBetween(33, 126));
}
function printLine(message) {
MCPOutput += "[" + message + "]<" + "br" + ">"
}
i want things to change so i wrote some bad code you’re welcome
Kevan: he/him