예제 #1
0
        public IEnumerable <string> Hypothesise()
        {
            int n = 1;

            while (true)
            {
                foreach (var hypothesis in Combine(n))
                {
                    var h = string.Concat(hypothesis);
                    if (GusLProcessor.IsGoodGusl(h))
                    {
                        yield return(h);
                    }
                }
                n++;
            }
        }
예제 #2
0
 public Gus()
 {
     _processor = new GusLProcessor();
     _memory    = new List <string>();
     _memory.AddRange(GusLProcessor.GusLAtoms.Select(c => c.ToString()));
 }