position: refactor
This commit is contained in:
parent
b67083f2ed
commit
345764f058
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue