function assigningColor(){
	for(var i = 0 ; i < squares.length ; ++i){
		color[i] = RandColor();
		//console.log(color[i]);
		squares[i].style.backgroundColor = "rgb"+color[i];
	    unfade(squares[i]);
	}
	guessColor = "rgb" + color[Math.floor((Math.random()*5)+1)];
	document.querySelector("span").textContent = guessColor;
	document.querySelector("#text").textContent = "";           
}
//assign the random colors and determine the colors be guessed

assign the random colors and determine the colors be guessed
assign the random colors and determine the colors be guessed
function assigningColor(){
	for(var i = 0 ; i < squares.length ; ++i){
		color[i] = RandColor();
		squares[i].style.backgroundColor = "rgb"+color[i];
	    unfade(squares[i]);
	}
	guessColor = "rgb" + color[Math.floor((Math.random()*5)+1)];
	document.querySelector("span").textContent = guessColor;
	document.querySelector("#text").textContent = "";           
}
function assigningColor ( ) { for ( var i = 0 ; i < squares . length ; ++ i ) { color [ i ] = RandColor ( ) ; squares [ i ] . style . backgroundColor = "rgb" + color [ i ] ; unfade ( squares [ i ] ) ; } guessColor = "rgb" + color [ Math . floor ( ( Math . random ( ) * 5 ) + 1 ) ] ; document . querySelector ( "span" ) . textContent = guessColor ; document . querySelector ( "#text" ) . textContent = "" ; }
assign the random colors and determine the colors be guessed
assign the random colors and determine the colors be guessed
//console.log(color[i]);
