Пример #1
0
        internal Maze CreateComplexMaze(MazeBuilder builder)
        {
            builder.BuildRoom(1);
            // ...
            builder.BuildRoom(1001);

            return(builder.GetMaze());
        }
Пример #2
0
        internal Maze CreateMaze(MazeBuilder builder)
        {
            builder.BuildRoom(1);
            builder.BuildRoom(2);
            builder.BuildDoor(1, 2);

            return(builder.GetMaze());
        }