-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathSendTimeReMaining.cpp
More file actions
29 lines (27 loc) · 848 Bytes
/
Copy pathSendTimeReMaining.cpp
File metadata and controls
29 lines (27 loc) · 848 Bytes
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
#include "stdafx.h"
#include "data.h"
#include "chess.h"
#include "Resource.h"
#include "pregen.h"
void
SendTimeRemaining(ChessProgramState *cps,int machineWhite)
{
// char message[MSG_SIZ];
// long time, otime;
// /* Note: this routine must be called when the clocks are stopped
// or when they have *just* been set or switched; otherwise
// it will be off by the time since the current tick started.
// */
// if (machineWhite) {
//time = whiteTimeRemaining / 10;
//otime = blackTimeRemaining / 10;
// } else {
//time = blackTimeRemaining / 10;
//otime = whiteTimeRemaining / 10;
// }
// if (time <= 0) time = 1;
// if (otime <= 0) otime = 1;
//
// sprintf(message, "time %ld\notim %ld\n", time, otime);
// SendToProgram(message, cps);
}