Example #1
0
 public Analyzer()
 {
     m_tree = new AnalysisTree(this);
     CurrentGame = new Game();
 }
Example #2
0
 public void SetCurrentPosition(Position.Position p)
 {
     // TODO - stop ongoing analysis somehow
     m_tree.SetRoot(p, Move.NULL_MOVE);
     CurrentGame = new Game();
     CurrentGame.m_initial_position = p == null ? Fen.InitialPosition
         : Fen.Encode(p);
 }