-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathHandleMachineMove.cpp
More file actions
45 lines (38 loc) · 1.22 KB
/
HandleMachineMove.cpp
File metadata and controls
45 lines (38 loc) · 1.22 KB
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
#include "stdafx.h"
#include "data.h"
#include "chess.h"
#include "Resource.h"
#include "pregen.h"
extern void HandleMachineCYC105(TCHAR *Tinfo, ChessProgramState *cps); //cyclone 105
extern void HandleMachineUCCI162(TCHAR *Tinfo, ChessProgramState *cps); //UCCI1.62
extern void HandleMachineQH(TCHAR *Tinfo, ChessProgramState *cps); //浅红
extern void HandleMachineQB(TCHAR *Tinfo, ChessProgramState *cps); //奇兵
extern void HandleMachineGGyq(TCHAR *Tinfo, ChessProgramState *cps); //cyclone 105
void //处理引擎输入过来的消息
HandleMachineMove(TCHAR *Tinfo, ChessProgramState *cps){
//while (*message == '\007'){ //Kludge to ignore BEL characters
// message++;
//}
switch(cps->ucci){
case UCCI_UCCI_ms:
case UCCI_UCCI_OLD:
HandleMachineUCCI162(Tinfo, cps);
break;
case UCCI_GGchess:
HandleMachineGGyq(Tinfo, cps);
break;
case UCCI_CYC105:
HandleMachineCYC105(Tinfo, cps);
break;
case UCCI_QianHong:
HandleMachineQH(Tinfo, cps);
break;
case UCCI_QiBing:
HandleMachineQB(Tinfo, cps);
break;
default:
LogOut(_T("\n未处理信息...\n"));
LogOut(Tinfo);
break;
}
}