Пример #1
0
        private static Picture CreateQuartet(int n, Picture p)
        {
            var s = new SidePicture(n - 1, p);
            var c = new CornerPicture(n - 1, p);
            var u = new UtilePicture(p);

            return(new QuartetPicture(c, s, s.Turn(), u));
        }
Пример #2
0
        public SquareLimitPicture(int n, Picture p)
        {
            var nw = new CornerPicture(n, p);
            var sw = nw.Turn();
            var se = sw.Turn();
            var ne = se.Turn();
            var nm = new SidePicture(n, p);
            var mw = nm.Turn();
            var sm = mw.Turn();
            var me = sm.Turn();
            var mm = new UtilePicture(p);

            _picture = new NonetPicture(nw, nm, ne, mw, mm, me, sw, sm, se);
        }