Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
sample
performance
fixedDepthSearchPerf.cc
Go to the documentation of this file.
1
#include "
osl/record/csaString.h
"
2
#include "
osl/checkmate/fixedDepthSearcher.tcc
"
3
#include "
osl/state/numEffectState.h
"
4
#include "
osl/misc/perfmon.h
"
5
#include <time.h>
6
#include <sys/time.h>
7
#include <iostream>
8
using namespace
osl;
9
using namespace
osl::checkmate;
10
11
int
main
()
12
{
13
SimpleState state=CsaString(
14
"P1-KY * * * -KY * -FU-KE * \n"
15
"P2 * * * * -OU * * * * \n"
16
"P3 * * * -FU-FU * * * -KY\n"
17
"P4-FU * * -GI * * * * * \n"
18
"P5 * * * * * * * * * \n"
19
"P6+FU * * +RY * +HI+FU * * \n"
20
"P7 * +FU * +FU+FU+FU * * * \n"
21
"P8 * * +OU * -TO * * * * \n"
22
"P9+KY * * * * * * +KE * \n"
23
"P+00KI00GI00GI00GI00KE00KE00FU00FU00FU00KI\n"
24
"P-00KA00KA00KI00FU00FU00FU00FU00KI\n"
25
"+\n"
).getInitialState();
26
NumEffectState eState(state);
27
ProofDisproof
pdp;
28
osl::misc::PerfMon
perfmon;
29
FixedDepthSearcher
searcher(eState);
30
perfmon.
restart
();
31
searcher.setCount(0);
32
for
(
int
i=0;i<1000;i++)
33
{
34
Move
dummy;
35
pdp=searcher.
hasCheckmateMove
<
BLACK
>(1,dummy);
36
}
37
perfmon.
stop
(
"total"
, searcher.
getCount
());
38
std::cerr << pdp << std::endl;
39
return
0;
40
}
Generated on Sun Jul 21 2013 13:37:24 by
1.8.4