Exemple #1
0
 public MinimaxGamer(string gameId, Parser p)
     : base(gameId, p)
 {
     Random = new Random();
     _searchTimer = new System.Timers.Timer();
     _searchTimer.Elapsed += searchTimer__Elapsed;
 }
Exemple #2
0
        protected Gamer(string gameId, Parser p)
            : base(p)
        {
            GameId = gameId;

            DoesProcessor = new RelationNameProcessor("does", SymbolTable);
            TrueProcessor = new RelationNameProcessor(Parser.TokTrue);
        }
Exemple #3
0
        protected ReasoningEntity(Parser parser)
        {
            Parser = parser;
            SymbolTable = Parser.SymbolTable;

            QueryTerminal = MakeQuery("terminal");
            QueryNext = MakeQuery("next", "?x");

            Random = new Random();
        }
Exemple #4
0
 ////////////////////////////////////////////////////////////////////////////
 public static GameInformation ExamineGame(String filename, Parser p)
 {
     try
     {
         GdlList axioms = p.Parse(new StreamReader(filename));
         var meta = new MetaGdl(p);
         return meta.ExamineGdl(axioms);
     }
     catch (IOException)
     {
         throw new Exception("Error reading from file");
     }
 }
Exemple #5
0
        public MetaGdl(Parser p)
        {
            _relations = new TreeDictionary<int, RelationInfo>();
            _functionSymbols = new TreeSet<int>();
            _objectSymbols = new TreeSet<int>();

            _parser = p;

            _rules = new TreeDictionary<int, List<Implication>>();
            _groundFacts = new TreeDictionary<int, List<GroundFact>>();
            _roles = new List<TermObject>();

            InsertReservedKeywords();
        }
Exemple #6
0
 public RandomGamer(string gameId, Parser p)
     : base(gameId, p)
 {
 }
Exemple #7
0
 public PropNetGamer(string gameId, Parser p)
     : base(gameId, p)
 {
     _stateMachine = new PropNetStateMachine();
 }