예제 #1
0
        void InitTree(GameNode node, int curLevel = 2)
        {
            if (curLevel > Levels)
            {
                return;
            }
            GameNode left = new GameNode();

            InitTree(left, curLevel + 1);
            GameNode right = new GameNode();

            InitTree(right, curLevel + 1);
            node.AddLeft(left).AddRight(right);
        }