-
Notifications
You must be signed in to change notification settings - Fork 1
/
HandEvaluator.h
50 lines (38 loc) · 882 Bytes
/
HandEvaluator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// HandEvaluator.h
// PokerEval
//
// Created by Seth Faxon on 9/6/09.
// Copyright 2009 Seth Faxon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HandEvaluatorLookupTables.h"
#import "Card.h"
typedef enum HandTypes
{
HighCard = 0,
Pair = 1,
TwoPair = 2,
Trips = 3,
Straight = 4,
Flush = 5,
FullHouse = 6,
FourOfAKind = 7,
StraightFlush = 8
} HandRankings;
@interface HandEvaluator : NSObject {
unsigned int handval;
NSString *pocket;
NSString *board;
}
-(id) initWithPocketAndBoard: (NSString *)pocketString andBoard: (NSString *)boardString;
-(id) initWithPocket: (NSString *)pocketString;
-(id) init;
-(NSString*) pocketCards;
-(int) cardRank: (int)card;
-(int) cardSuit: (int)card;
-(uint) evaluate: (unsigned long long)cards;
-(uint) convertCardMaskToInt:(uint)cardMask;
@end
@interface HandEvaluator (hidden)
@end