What is Data Center Fabric?

When first hearing the word ‘fabric’ one generally visualizes a single piece of cloth comprised of thousands of threads weaved together. When we use the term fabric in relation to data centers it is…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Chapter 14 Bending and Folding Your Mazes

Mazes for Programmers — by Jamis Buck (95 / 121)

👈 Your Turn | TOC | Cylinder Mazes 👉

It’s been a wild ride, but we’re nearly done. Maze algorithms, grids born of non-rectangular tesselations, circles, weaves, and braids, and even building those mazes out in three and four dimensions — it’s all brought us to this point.

Let’s go out with a bang. Let’s blow some minds.

Consider those mazes you’ve generated up to now, all of them neatly built on flat, predictable surfaces. Even the three-dimensional ones were composed of neatly planar levels. But what would happen if you were to take one of those mazes and bend it a bit, warping the surface so that it curves in one or more dimensions? What if you were to even go so far as to fold it?

Those first-person shooters take on an entirely different feel when the corridors wrap around the surface of a sphere, or carry you around the inside of a ribbon. Picture a game where you can see your goal above you as the maze arches overhead, or where monsters may be lurking just down the passage, hidden by a not-so-distant horizon!

These are what are called planair mazes, an unusual name for an unusual kind of puzzle. Mazes on cylinders, cubes, cones, pyramids, spheres, and toruses are all examples of these planair mazes, and I’ll be honest: this is a topic that could easily be an entire book in its own right. We’ve only got time for a brief taste, but hopefully that’ll be enough to set you exploring some more on your own.

We’ll look at four different surfaces in this chapter: cylinders, Möbius strips, cubes, and spheres. In each case, you’ll learn how to generate a maze on that surface. For the first three, we’ll use simple paper-crafting techniques to visualize the resulting mazes, and for the last we’ll resort to using a 3D renderer to draw our maze on the surface of a sphere.

👈 Your Turn | TOC | Cylinder Mazes 👉

Add a comment

Related posts:

Eat that Frog with a Pomodoro

I have used pomodoro technique to complete the proof of my research problem. And I faced difficulty in this experiment because this proof required much time to think. I’m working on this from first…

Did It Work?

Printed in full color.For this new edition of the best-selling Learn to Program, Chris Pine has taken a good thing and made it even better. First, he used the feedback from hundreds of reader e-mails to update the content and make it even clearer. Second, he updated the examples in the book to use the latest stable version of R

Fixed Gear and No Condoms

When she stopped me on the street to ask me where Angel’s Share was, however, I almost couldn’t talk. She was wearing a dress short enough to kill a nun and the bike was engineering perfection: one…