- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmovearray.cpp
More file actions
Latest commit
28 lines (23 loc) · 505 Bytes
/
Copy pathmovearray.cpp
File metadata and controls
28 lines (23 loc) · 505 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
#include"movearray.hpp"
MoveArray::MoveArray() : count(0), num_attacks(0) {
moveArray.resize(60);
}
MoveArray::~MoveArray() {}
voidMoveArray::clear() {
count = 0;
num_attacks = 0;
moveArray.resize(60);
}
voidMoveArray::addMove(BitMove mv) {
if(count < 60) {
moveArray[count] = mv;
} else {
moveArray.push_back(mv);
}
++count;
}
voidMoveArray::setHistoryCompare(bool val) {
for(unsignedint i = 0; i < count; ++i) {
moveArray[i].historyCompare = val;
}
}