Proposal: Quick, like its on Fire! [cleanup]
became popular 3 to 0 after 48 hours. Enacted by Derrick.
In this proposal, the character string "\]" is considered to instead be "]"Adminned at 10 Oct 2018 17:07:01 UTC
replace the function isAdj2Coord with:
function isAdj2Coord(row,column, equipment, firewall) {
properties = [\];
directions = [[-1,-1],[0,-1],[1,-1],[-1,0],[1,0],[-1,1],[0,1],[1,1]];
for (var i = 0; i < directions.length; i++) {
character = fireCellValue(row + directions[i\][0], column + directions[i\][1], firewall);
if (character == equipment) {
return true;
}
}
return false;
}
replace the function fireCellValue with:
function fireCellValue(row, column, firewall){
return firewall[row]? firewall[row][column]:undefined;
}
This maintains functionality while increasing readability, throwing fewer errors, and taking up less space. Thus it is a cleanup.
Kevan: he/him