Menu Close

Tag: Mazes

Maze showing the distance from the centre.

Mazes in C# and Unity

Recently, I have started reading the book Mazes For Programmers, by Jamis Buck. All the examples in the book are given in Ruby. So I have worked through these, to the point where I made myself some coloured mazes using the example code. See the example picture below. The darker the colour, the further the location is from the centre: However, I think better in C# so I thought I would try re-writing the code. Plus, this makes sure that I really understand the examples. Why not then, do this in Unity, then I could build the maze in 3D…