Dienstag, 11. November 2008

Java Hearts remarks

EE3206/ EE5805 Java programming and Applications

Hearts game Project

public Card whcihCardToDeal(int leadSuit);

before CPU player playsACard(String cardname) , it needs to determine which card to deal.

The conditions are:

1. what is the value of leadSuit?
2. can it follow suit?
3. if not, which suit can be dealt?
4. if no other suits other than hearts-- deal a hearts,
then brokenHeart = ture
5 update playerCardList



Keine Kommentare: