File: functions.h

package info (click to toggle)
tenace 0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,440 kB
  • ctags: 543
  • sloc: ansic: 5,303; sh: 3,683; makefile: 98
file content (33 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download
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
#ifndef FUNCTIONS_H
#define FUNCTIONS_H

#include "bridge.h"

extern const char *seat_str[];
extern const char *trump_str[];
extern const char *trump_str_asc[];
extern const char *trump_str_char[];
extern const char *trump_color[];
extern const char *double_str[];

char *rank_string (rank r);
char rank_char (rank r);
int parse_suit(char c);
int parse_card(char *tok);
int parse_bid(char **tok);
rank parse_rank_char (char c);
char *card_string (card c);
char *card_string_color (card c);
GString *bid_string (card c, int alert);
GString *hand_string (board *b, seat h);
char *contract_string(int level, suit trumps, seat declarer, int doubled);
char *contract_string_asc (int level, suit trumps, seat declarer, int doubled);
seat seat_mod(seat s);
int seat_mask (seat s, seat filter);
char *overtricks (int i);
int score (int level, suit s, int doubled, int vuln, int tricks);
char *score_string(int level, suit trumps, seat declarer, int doubled, int vuln, int tricks, seat lead);

extern int pos_score_for;

#endif