Commit c6c73ad3 authored by Eric Schewe's avatar Eric Schewe
Browse files

Removed all the debug messages

parent e5aafbbf
......@@ -125,37 +125,23 @@
document.getElementById(id).style.background='#009900';
}
document.getElementById("Ghosts").innerHTML = "[debug] If you see any of these debug messages, please send a screenshot to FiZi#0001 on Discord<br/><br/>";
var Evidence = "ev_" + buttonArray[id][1];
Evidence = Evidence.replace(" ", "_");
document.getElementById("Ghosts").innerHTML += "[debug] buttonArray[" + id + "] = " + buttonArray[id] + "<br/>";
ghostsLeft = JSON.parse(JSON.stringify(ghostArray));
document.getElementById("Ghosts").innerHTML += "[debug] array made <br/>";
document.getElementById("Ghosts").innerHTML += "[debug] &nbsp; &nbsp; " + ghostsLeft[0][0] + ", " + ghostsLeft[0][1] + ", " + ghostsLeft[0][2] + ", " + ghostsLeft[0][3] + "<br/>";
document.getElementById("Ghosts").innerHTML += "[debug] &nbsp; &nbsp; " + ghostsLeft[1][0] + ", " + ghostsLeft[1][1] + ", " + ghostsLeft[1][2] + ", " + ghostsLeft[1][3] + "<br/>";
document.getElementById("Ghosts").innerHTML += "[debug] &nbsp; &nbsp; " + ghostsLeft[2][0] + ", " + ghostsLeft[2][1] + ", " + ghostsLeft[2][2] + ", " + ghostsLeft[2][3] + "<br/>";
document.getElementById("Ghosts").innerHTML += "[debug] &nbsp; &nbsp; " + ghostsLeft[3][0] + ", " + ghostsLeft[3][1] + ", " + ghostsLeft[3][2] + ", " + ghostsLeft[3][3] + "<br/>";
var i;
for (i = 0; i < buttonArray.length; i++)
{
document.getElementById("Ghosts").innerHTML += "[debug] Loop i (" + i + "/" + buttonArray.length + ")<br/>";
for (var j = ghostsLeft.length - 1; j >= 0 ; j--)
{
document.getElementById("Ghosts").innerHTML += "[debug] &nbsp; &nbsp; Loop j (" + j + "/" + ghostsLeft.length + ")<br/>";
if (buttonArray[i][0] == 1 && ghostsLeft[j][1] != i && ghostsLeft[j][2] != i && ghostsLeft[j][3] != i)
{
// Ghost does not contain a needed evidence. Remove it!
document.getElementById("Ghosts").innerHTML += "[debug] Button " + i + " is green and " + ghostsLeft[j][0] + " does not contain it<br/>";
ghostsLeft.splice(j,1);
}
else if (buttonArray[i][0] == 2 && (ghostsLeft[j][1] == i || ghostsLeft[j][2] == i || ghostsLeft[j][3] == i))
{
document.getElementById("Ghosts").innerHTML += "[debug] Button " + i + " is red and " + ghostsLeft[j][0] + " contains it<br/>";
ghostsLeft.splice(j,1);
}
else
......@@ -167,8 +153,6 @@
}
}
document.getElementById("Ghosts").innerHTML += "[debug] pruned array <br/>";
if (ghostsLeft.length == ghostArray.length)
{
document.getElementById("Ghosts").innerHTML = "<br/>Please click / tap an evidence above.<br/><br/>Black = Unknown<br/>Green = I found this evidence";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment