예제 #1
0
        public WalkInMatrix(IReadable reader, IWritable writer)
        {
            this.reader = reader;
            this.writer = writer;

            this.SizeN       = reader.ReadSize();
            this.matrix      = new int[this.SizeN, this.SizeN];
            this.cellCounter = 1;
            this.row         = 0;
            this.col         = 0;
            this.dx          = 1;
            this.dy          = 1;
        }