File: othello.h

package info (click to toggle)
vgagamespack 1.3-7
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 292 kB
  • ctags: 418
  • sloc: ansic: 3,755; makefile: 79
file content (31 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (3)
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
/*
 * Othello
 *
 * Copyright (C) Evan Harris, 1994
 *
 * Permission is granted to freely redistribute and modify this code,
 * providing the author(s) get credit for having written it.
 */

#if !defined(CLOCKS_PER_SECOND) && defined(CLOCKS_PER_SEC)
#define CLOCKS_PER_SECOND CLOCKS_PER_SEC
#endif

#define NEWGAME -1
#define QUIT -2
#define UNKNOWN -8
#define ILLEGAL -9

void NewGame(void);
void InitDisplay(int reverse);
void EndDisplay(void);
void PutBoardStart(void);
void PutBoardEnd(void);
void PutSquare(int x, int y, int entry);
void ShowWin(int who, int winscore, int losescore);
void ShowDraw(int score);
void ThinkingOn(void);
void ThinkingOff(void);
void ShowTime(double t);
int GetMove(void);
void Poll(void);