File: computer.h

package info (click to toggle)
floater 1.2b1-6
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 1,612 kB
  • ctags: 1,822
  • sloc: ansic: 16,755; tcl: 4,034; sh: 1,291; makefile: 129
file content (50 lines) | stat: -rw-r--r-- 1,763 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Copyright (c) 1996--1999 Geoff Pike. */
/* All rights reserved. */

/* Floater is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */

/* This software is provided "as is" and comes with absolutely no */
/* warranties.  Geoff Pike is not liable for damages under any */
/* circumstances.  Support is not provided.  Use at your own risk. */

/* Personal, non-commercial use is allowed.  Attempting to make money */
/* from Floater or products or code derived from Floater is not allowed */
/* without prior written consent from Geoff Pike.  Anything that remotely */
/* involves commercialism, including (but not limited to) systems that */
/* show advertisements while being used and systems that collect */
/* information on users that is later sold or traded require prior */
/* written consent from Geoff Pike. */
#if 0
/* computer.h */
/* useful stuff from br.c */

extern int myseat;
extern char *curastate;
extern char *curpstate;
extern char curcontract[10];
extern int curtrump;
extern char initialcards[4][35];
extern int currestricks, currespoints;

extern char declarer(char *auction, int dealer);

extern char myturntobid(void);
extern char myturntoplay(void);
extern char dummyturntoplay(void);
extern char executebid(char *b);
extern char cardmember(char *card, char *cards);
extern char suitmember(char suit, char *cards);

extern char *remainingcards(int seat);
extern char suitled(char *pstate);

extern char executeplay(char *p);

extern char playsmall_ifpossible(char suit);
extern void playsmall(char suit);
extern void followsmall(void);
extern void makerandomplay(void);
extern void makerandombid(void);
#endif