var colorArr=new Array("red","orange","yellow","green","blue","purple");
var secret=new Array(4);
var guessArr=new Array(4);
var count=0;
var count1=0;
var isDups=false;
function checkDups(check) {
if (check.checked) isDups=true;
else isDups=false;
}
function addNum(n) {
if (count1";
}
}
function clearNum() {
if (count1>0&&count11: ";
}
function guess() {
if (count1!=4) return;
var black=0;
var grey=0;
if (isDups) {
var tempArr=new Array(4);
for (var i=0;i"+black+" "+grey+"
";
if (black==4) {
document.getElementById("odiv").innerHTML+="You Win!";
count1=9;
return;
}
if (count>8) {
document.getElementById("odiv").innerHTML+="Sorry! Answer was:
";
for (var i=0;i";
count1=9;
return;
}
count++;
count1=0;
guessArr=new Array(4);
document.getElementById("odiv").innerHTML+=""+(count+1)%10+": ";
}