Proposal: RollerCoaster
Timed out 3 votes to 0. Enacted by Kevan.
Adminned at 14 Oct 2018 18:31:22 UTC
function moveCharCode(string,index,add){
return String.fromCharCode((string.charCodeAt(index)+add-33)%(126-33+1)+33)
}
Change:
var programInfo = GNDTArray.filter(entry=>entry[0]==program);
to
var programInfo = GNDTArray.filter(entry=>entry[0]==program)[0];
Add to the runAccessCodes Function:
if(accessCode == '^'){
for(var row of GNDTArray){
var target = getProgramInfo(row[3]);
var newOutPut = moveCharCode(target[2],0,6)+moveCharCode(target[2],1,-4);
target[2] = newOutput;
printLine("SET "+row[3]+" OUTPUT TO "+newOutPut);
}
}
if(accessCode == 'v'){
for(row of GNDTArray){
target = getProgramInfo(row[3]);
newOutPut = moveCharCode(target[2],0,-4)+moveCharCode(target[2],1,6);
target[2] = newOutput;
printLine("SET "+row[3]+" OUTPUT TO "+newOutPut);
}
}
up and down (or ^ and v, if you prefer) are intentionally not opposites of each other. They target most people, but not all people, and give everyone a little bit of input as to what goes on.
Kevan: he/him