コード例 #1
0
ファイル: LimitedBasicTape.cs プロジェクト: nerai/Nibbler
        public LimitedBasicTape(LimitedBasicTape tape, Dictionary <byte, string> gamma)
            : this(tape.Tape, gamma)
        {
            if (tape == null)
            {
                throw new ArgumentNullException();
            }
            if (gamma == null)
            {
                throw new ArgumentNullException();
            }

            Position        = tape.Position;
            ExitsOnLeftSide = tape.ExitsOnLeftSide;
        }
コード例 #2
0
ファイル: LimitedBasicTape.cs プロジェクト: nerai/Nibbler
 public bool CompleteContentEquals(LimitedBasicTape t)
 {
     if (t.TotalTapeLength != TotalTapeLength)
     {
         return(false);
     }
     if (Position != t.Position)
     {
         return(false);
     }
     if (!Tape.SequenceEqual(t.Tape))
     {
         return(false);
     }
     return(true);
 }