Esempio n. 1
0
            public Vis()
            {
                CompilerParams.ReferencedAssemblies.Add(CodeBase.Get(Assembly.GetExecutingAssembly()));

                ShowExpr.Clear();
                ShowExpr.Add(new ExprFormatter("s[d].Node.ToGvString();{1}"));
            }
Esempio n. 2
0
 public VisActionTree()
 {
     ShowExpr.Clear();
     ShowExpr.Add(new ExprFormatter("s[d].Id", "id:{1}"));
     ShowExpr.Add(new ExprFormatter("s[d].State.Pot", "\\np:{1}"));
     ShowExpr.Add(new ExprFormatter("s[d].ActivePlayers", "\\nap:{1:X}"));
 }
Esempio n. 3
0
 public VisChanceTree()
 {
     ShowExpr.Clear();
     ShowExpr.Add(new ExprFormatter("s[d].Id", "id:{1}"));
     ShowExpr.Add(new ExprFormatter("s[d].Probab", "\\np:{1:0.00000}"));
     ShowExpr.Add(new ExprFormatter("s[d].PotShares", "{1:0.00000}"));
 }
Esempio n. 4
0
        public StrategyTreeToXml()
        {
            // Add this assembly
            CompilerParams.ReferencedAssemblies.Add(CodeBase.Get(Assembly.GetExecutingAssembly()));

            ShowExpr.Add(new ExprFormatter("((ai.pkr.metastrategy.algorithms.StrategyTreeToXml)c).GetNodeName(t, s, d)", "{1}"));
            ShowExpr.Add(new ExprFormatter("((ai.pkr.metastrategy.algorithms.StrategyTreeToXml)c).GetPositionAttribute(t, s, d)", "a;p;{1}"));
            ShowExpr.Add(new ExprFormatter("((ai.pkr.metastrategy.algorithms.StrategyTreeToXml)c).GetCardAttribute(t, s, d)", "a;c;{1}"));
            ShowExpr.Add(new ExprFormatter("((ai.pkr.metastrategy.algorithms.StrategyTreeToXml)c).GetAmountAttribute(t, s, d)", "a;a;{1}"));
            ShowExpr.Add(new ExprFormatter("((ai.pkr.metastrategy.algorithms.StrategyTreeToXml)c).GetProbabAttribute(t, s, d)", "a;probab;{1}"));

            SkipEmpty = true;
        }
Esempio n. 5
0
 public Vis()
 {
     ShowExpr.Add(new ExprFormatter("s[d].Value", "\\nv:{1:0.00000}"));
 }
Esempio n. 6
0
 public VisStrategyTree()
 {
     ShowExpr.Clear();
     ShowExpr.Add(new ExprFormatter("s[d].Id", "id:{1}"));
     ShowExpr.Add(new ExprFormatter("s[d].Probab", "\\np:{1:0.00000}"));
 }