File: goScore.h

package info (click to toggle)
cgoban 1.9.14-18
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,448 kB
  • sloc: ansic: 36,037; sh: 707; makefile: 259
file content (35 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (12)
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
/*
 * src/goScore.h, part of Complete Goban (game program)
 * Copyright (C) 1995 William Shubert.
 * See "configure.h.in" for more copyright information.
 */


#ifndef  _GOSCORE_H_
#define  _GOSCORE_H_  1

#ifndef  _GOGAME_H_
#include "goGame.h"
#endif


/**********************************************************************
 * Data types
 **********************************************************************/

typedef struct GoScore_struct  {
  int  territories[2], livingStones[2], deadStones[2], dame;
  float  scores[2];
} GoScore;


/**********************************************************************
 * Functions
 **********************************************************************/
extern void  goScore_compute(GoScore *score, GoGame *game);
extern void  goScore_zero(GoScore *score);
extern Str  *goScore_str(GoScore *score, GoGame *game,
			 const GoTime *time, const GoTimer *timers);


#endif  /* _GOSCORE_H_ */