|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectZetAnalyzer
Provides static methods for finding sets.
Constructor Summary | |
ZetAnalyzer()
|
Method Summary | |
static int[] |
findZet(ZetCard[] cards)
Finds the indices of three cards from a given array that form a "set". |
static boolean |
isZet(ZetCard card1,
ZetCard card2,
ZetCard card3)
Returns true if card1, card2, and card3 form a "set," false otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZetAnalyzer()
Method Detail |
public static boolean isZet(ZetCard card1, ZetCard card2, ZetCard card3)
card1
- the first card.card2
- the second card.card3
- the third card.
public static int[] findZet(ZetCard[] cards)
cards
- an array of "set" cards.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |