This is what I have so far and I need help as to what to do further
public class Card extends Actor
{
GreenfootImage backImage = new GreenfootImage("card back black.png");
GreenfootImage cardImage;
int count;
static int paired;
static Card first, second;
Card match;
int score;
public Card(GreenfootImage temp)
{
cardImage = temp;
count = 0;
setImage(backImage);
}
public void act()
{
itsAMatch();
}
public int getCount()
{
return count;
}
public void incCount()
{
count = count + 1;
}
public void flip()
{
if (Greenfoot.mouseClicked(this))
{
setImage(cardImage);
}
}
public void itsAMatch()
{
/*if (CardImage = CardImage)
{
getWorld().remove();
}
else
{
setImage(backImage);
}*/
}
public String toString()
{
return cardImage.toString();
}
}
