예제 #1
0
        private int[] PossibleSeeds(int[] rowIndex)
        {
            IEnumerable <byte[]> possibleSubTables = SubTables.AsEnumerable();

            for (int i = 0; i < rowIndex.Length; i++)
            {
                int iLocal = i;
                possibleSubTables = possibleSubTables.Where(x => x[rowIndex[iLocal]] == 5 - iLocal);
            }

            int[] possibleSeeds = possibleSubTables.Select(x => SubTables.ToList().IndexOf(x)).ToArray();
            return(possibleSeeds);
        }
예제 #2
0
        public void CreatSubTable(string scop)
        {
            var table = new SymbolTable(scop, this);

            SubTables.Add(table);
        }