position: refactor

This commit is contained in:
Calcitem 2020-08-31 23:05:56 +08:00
parent b67083f2ed
commit 345764f058
1 changed files with 1 additions and 5 deletions

View File

@ -29,13 +29,8 @@
#include "rule.h"
#include "search.h"
class AIAlgorithm;
class Node;
extern std::string tips;
/// StateInfo struct stores information needed to restore a Position object to
/// its previous state when we retract a move. Whenever a move is made on the
/// board (by calling Position::do_move), a StateInfo object must be passed.
@ -59,6 +54,7 @@ struct StateInfo
/// elements are not invalidated upon list resizing.
typedef std::unique_ptr<std::deque<StateInfo>> StateListPtr;
/// Position class stores information regarding the board representation as
/// pieces, side to move, hash keys, castling info, etc. Important methods are
/// do_move() and undo_move(), used by the search to update node info when