Esempio n. 1
0
        private int step5(int maxScore, int retryCnt)
        {
            int outputId = getOutputId();

            Output op = new Output(agi);
            StoreData st = answerId[outputId];
            if (st.score > maxScore)
            {
                for (int i = 0; i < st.GetStoneInfoSize(); i++)
                {
                    op.SetStone(st.GetStoneInfoId(i), st.GetStoneInfoKind(i), st.GetStoneInfoPlace(i));
                }
                fileName = commonMap.FILENAME + retryCnt.ToString() + ".txt";
                op.OutputExec(fileName);

                return st.score;
            }
            else
            {
                return maxScore;
            }
        }
Esempio n. 2
0
        private int step4()
        {
            int outputId = getOutputId();

            Output op = new Output(agi);
            StoreData st = answerId[outputId];
               // st.PrintStoreData();
            for (int i = 0; i < st.GetStoneInfoSize(); i++)
            {
                op.SetStone(st.GetStoneInfoId(i), st.GetStoneInfoKind(i), st.GetStoneInfoPlace(i));
            }
            /*
            var key = dic.FirstOrDefault(x => x.Value.Equals(outputId)).Key;
            if (key != null)
            {
                debug.PrintAgiCalcFields();
            }*/
            op.OutputExec(fileName);

            return st.score;
        }