Метод | Описание | |
---|---|---|
CardComparer ( AnnouncementTypeEnum announcementType ) : System |
Constructor for the class. Creates a new CardComparer object.
|
|
Compare ( object x, object y ) : int |
Compares two cards
|
Метод | Описание | |
---|---|---|
CardComparer ( ) : System |
Constructor for the class. Creates a new CardComparer object. Compares in such order 7,8,9,10,J,Q,K,A
|
|
CompareCombinations ( |
Compares in such order 7,8,9,10,J,Q,K,A
|
|
CompareNoTrumps ( |
Compares in such order 7,8,9,J,Q,K,10,A
|
|
CompareTrumps ( |
Compares in such order 7,8,Q,K,10,A,9,J
|
public CardComparer ( AnnouncementTypeEnum announcementType ) : System | ||
announcementType | AnnouncementTypeEnum | |
Результат | System |
public Compare ( object x, object y ) : int | ||
x | object | First card |
y | object | Second card |
Результат | int |