-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
22 lines (19 loc) · 773 Bytes
/
game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// game.h
// Interface to the game engine
// By: TeamDracula
// Date: 1 January 2012
// Version: 1.0
// Do not alter this file yourself. You do not submit this file.
#define MESSAGE_SIZE 100
#define LIMIT_LIMIT_MSECS 1500
// a type to contain a message (or taunt) provided by a player
typedef char playerMessage[MESSAGE_SIZE];
// Registers your best move so far with the game engine.
// This overrides any previous moves provided by your player.
//
// the array message will be stored in the game history
// it must contain a null (ie '\0') with only letters, spaces,
// digits, and/or punctuation characters before it, as the array
// will be passed to printf ("%s") when displaying messages to
// users.
void registerBestPlay( char *play, playerMessage message );