-
Notifications
You must be signed in to change notification settings - Fork 0
/
benchmark.h
executable file
·47 lines (39 loc) · 1.28 KB
/
benchmark.h
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
44
45
46
47
/**********************************************************************
|
| Bogart
| Chess Engine
|
| Copyright (C) 2009-2013 Dr.Kameleon
|
|**********************************************************************
| benchmark.h
|**********************************************************************/
#ifndef __BENCHMARK_H__
#define __BENCHMARK_H__
//=======================================================
// Macros
//=======================================================
#define BENCH_HEADER(X) "========================================" << endl\
<< X << endl << "========================================" << endl;
#define BENCH_SUBHEADER(X) endl << "-------------------------" << endl\
<< X << endl << "-------------------------" << endl;
//=======================================================
// Prototype
//=======================================================
class Benchmark
{
public:
//-----------------------------------------
// Methods
//-----------------------------------------
Benchmark(Board* b);
void perft(UINT depth, BOOL loop);
void eval(UINT depth, BOOL loop);
void generate();
//-----------------------------------------
// Variables
//-----------------------------------------
Board* board;
int depth;
};
#endif