Пример #1
0
        static int Main(string[] args)
        {
            if (!Parser.ParseArgumentsWithUsage(args, _cmdLine))
            {
                return(1);
            }

            if (_cmdLine.DebuggerLaunch)
            {
                Debugger.Launch();
            }

            ChanceTree ct = ChanceTree.Read <ChanceTree>(_cmdLine.ChanceTree);

            if (_cmdLine.Verify)
            {
                Console.Write("Verifying tree ...");
                VerifyChanceTree.VerifyS(ct);
                Console.WriteLine(" OK");
            }

            AnalyzeChanceTree.AnalyzeS(ct);

            return(0);
        }
        public void Test_AnalyzeS()
        {
            GameDefinition gd = XmlSerializerExt.Deserialize <GameDefinition>(
                Props.Global.Expand("${bds.DataDir}ai.pkr.metastrategy/kuhn.gamedef.xml"));
            ChanceTree ct0 = CreateChanceTreeByGameDef.Create(gd);

            AnalyzeChanceTree.AnalyzeS(ct0);
        }