I'm trying to create a 5 Card Draw program. The idea is that when you click a card, it gets marked for swapping out (Discard).
The goal of this part is that when i click on a card that is face up (Suit and Number) it should "flip over", or show the back of the card. From there, I want to make it so that if you change your mind and want to keep that card, you can unmark it and flip it back over (face up). Here's what I've got in the act method of the WorldClass
I had the initial flip over working earlier, though I'm not sure how I did it.. Any help is much appreciated :)
if(Greenfoot.mouseClicked(hand[1])){
hand[1].getImage();
if (hand[1].getImage() != "cardback.gif"){
hand[1].setImage("cardback.gif");
} else if (hand[1].getImage() == "cardback.gif"){
hand[1].turnOver();
}
}

