-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCSearchSuite.h
37 lines (27 loc) · 880 Bytes
/
CSearchSuite.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
#ifndef _CSEARCHSUITE_H_
#define _CSEARCHSUITE_H_
#include <ostream>
#include <fstream>
#include "CBoard.h"
#include "ai.h"
class CSearchSuite
{
public:
friend std::ostream& operator <<(std::ostream &os, const CSearchSuite &rhs);
CSearchSuite(const char *fileName) : m_passCount(0), m_failCount(0),
m_testSuiteFile(), m_testSuiteLogFile(), m_board(), m_ai(m_board)
{open(fileName);}
~CSearchSuite() {close();}
bool DoTest();
std::string ToString() const;
private:
int m_passCount;
int m_failCount;
std::ifstream m_testSuiteFile;
std::ofstream m_testSuiteLogFile;
CBoard m_board;
AI m_ai;
void open(const char *fileName);
void close();
}; // end of class CSearchSuite
#endif // _CSEARCHSUITE_H_