示例#1
0
文件: GameBoard.cs 项目: Bilzac/457a
        public GameBoard(MinMax node_type, GameBoard parent)
        {
            //parents and children
            this.parent = parent;
            this.children = new List<GameBoard>();

            this.board = parent.CopyBoard();

            if (node_type == MinMax.Max)
            {
                this.node_type = MinMax.Max;
                this.alpha = 0;
            }
            else
            {
                this.node_type = MinMax.Min;
                this.beta = 0;
            }
        }