$( "#click" ).click(function() {
var image1 = new Array ();
var number1 = 1 + Math.floor(Math.random() * 3);
var one = $(".one"),
two = $(".two"),
three = $(".three");
image1[0] = "<img src='images/ace.jpg'>";
image1[1] = "<img src='images/king.png'>";
image1[2] = "<img src='images/queen.png'>";
$(one).html(image1[number1]);
$(two).html(image1[number1]);
$(three).html(image1[number1]);
if(one && two && three === one && two && three){
console.log("you win");
$('.win').html("<h1>You win!!</h1>");
}
else{
$('.win').html("<h1>Try again!!</h1>");
console.log("You lose");
}
Well this maybe a little less ugly, although maybe "more" wrong but back to values and searching online values and associations
nope