-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathFullBoard.h
More file actions
32 lines (24 loc) · 728 Bytes
/
FullBoard.h
File metadata and controls
32 lines (24 loc) · 728 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
30
31
32
#ifndef FULLBOARD_H_INCLUDED
#define FULLBOARD_H_INCLUDED
#include "config.h"
#include "FastBoard.h"
class FullBoard : public FastBoard {
public:
int remove_string(int i);
int update_board(const int color, const int i, bool & capture);
uint64 calc_hash(void);
uint64 calc_ko_hash(void);
uint64 get_hash(void);
uint64 get_ko_hash(void);
uint64 get_canonical_hash(void);
// calculates hash after move without executing it
// good for calculating superko
uint64 predict_ko_hash(int color, int move);
void reset_board(int size);
void display_board(int lastmove = -1);
uint64 hash;
uint64 ko_hash;
private:
std::array<uint64, 8> get_rotated_hashes(void);
};
#endif