-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathhands.hpp
More file actions
59 lines (39 loc) · 1.67 KB
/
hands.hpp
File metadata and controls
59 lines (39 loc) · 1.67 KB
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
50
51
52
53
54
55
56
57
58
59
/*
DDS, a bridge double dummy solver.
Copyright (C) 2006-2014 by Bo Haglund /
2014-2016 by Bo Haglund & Soren Hein.
See LICENSE and README.
*/
#ifndef EXAMPLES_HANDS_H
#define EXAMPLES_HANDS_H
// General initialization of three hands to be used in examples.
extern int trump_suit_[3];
extern int first_hand_[3];
extern int dealer_hand_[3];
extern int vulnerability_[3];
extern char pbn_hands_[3][80];
extern unsigned int holdings_[3][4][4];
extern int play_count_[3];
extern char play_sequence_[3][106];
extern int play_suit_[3][52];
extern int play_rank_[3][52];
auto print_future_tricks(char title[], FutureTricks * fut) -> void;
auto equals_to_string(int equals, char * res) -> void;
auto compare_future_tricks(FutureTricks * fut, int handno, int solutions) -> bool;
auto set_table(DdTableResults * table, int handno) -> void;
auto compare_table(DdTableResults * table, int handno) -> bool;
auto print_table(DdTableResults * table) -> void;
auto compare_par(ParResults * par, int handno) -> bool;
auto compare_dealer_par(ParResultsDealer * par, int handno) -> bool;
auto print_par(ParResults * par) -> void;
auto print_dealer_par(ParResultsDealer * par) -> void;
auto compare_play(SolvedPlay * trace, int handno) -> bool;
auto print_bin_play(PlayTraceBin * play, SolvedPlay * solved) -> void;
auto print_pbn_play(PlayTracePBN * play, SolvedPlay * solved) -> void;
auto print_hand(char title[],
unsigned int rank_in_suit[DDS_HANDS][DDS_SUITS]) -> void;
auto print_pbn_hand(char title[], char remainCards[]) -> void;
auto convert_pbn(char * dealBuff,
unsigned int remainCards[DDS_HANDS][DDS_SUITS]) -> int;
auto is_a_card(char cardChar) -> int;
#endif // EXAMPLES_HANDS_H