Spoilers for The Witness I finally got around to playing The Witness last month, and enjoyed most of it a lot. The vast majority of the puzzles are hand crafted by Jonathan Blow and his team, but near the end is an infamous section, The Challenge . The Challenge is the only timed section in the game. To stop you simply memorising the puzzle answers, all puzzles in this section are randomly generat
13 Nov 2026Latest posts
Ok, this one is really best explained with a visualiser: NetHack’s level generation has a lot of interesting things, but I wanted to focus on the Gnomish Mines because of their use of Cellular Automata. This gives it an organic caves feel, while the majority of the game is spent in square rooms. It’s very straightforward: Randomly pick 40% of the cells to be floor Apply four passes of Cellular Aut
18 Oct 2026These past few weeks, I’ve been conducting interviews, and I often open with “make sure you articulate your thoughts out loud, so I can follow along with your thinking”. This is primarily because I’m not a mind reader, but it does also help ensure candidates avoid freezing up. It’s a very “interviewy” skill though – artificial and unlike real development. The other thing I’ve been doing is playing
18 Oct 2026The Machine Stops (E M Forster, 1909) is an enormously prescient sci-fi dystopia. Everyone lives in isolation, with the titular Machine responsible providing for all their needs, and communication done via video calls. It’s incredibly accurate for predicting some aspects like the internet, social media and AI. But other aspects, like humanity’s total surrender of control to the Machine, have yet t
12 Oct 2026I’ve spoken several times about jittered Voronoi grids , such as here . These are infinite Voronoi diagrams where the sites come from randomly picking a point from each square in a square grid. They’re simple and popular in procedural generation. But I’ve been a bit vague about computing them previously, and that’s because I was wrong . You typically compute the infinite diagram lazily, one cell a
26 Sep 2026Recently I’ve been looking at Mesh Welding algorithms. Mesh Welding is when you have a a mesh, i.e. a collection of vertices, edges and faces, and you merge any vertices which are close enough together. This is a common operation in procgen, as it’s often convenient to generate several things completely independently, then join them together afterwards. I’ve had to re-implement it several times. I
31 Aug 2026I found a cool Voronoi variant that gives a nice fractal boundaries to each Voronoi cell, that is very efficient to compute. It seems like a good fit for coastlines, which are often similarly fractal in nature. https://www.shadertoy.com/view/sfKSDw Let me explain. “Jittered” Voronoi is where you start with an infinite grid, and then for each square in the grid, you pick a random point called a sit
29 Aug 2026Say you’ve written a little procedural generation program. Say it’s some art, music or level generator. It looks kinda cool, but after a few generations, you are already bored with it. Somehow, for all your careful design, all your generated results look samey, boring. This is Kate Compton’s ten-thousand bowl of oatmeal problem : every bowl of oatmeal is unique, but that does not make them interes
5 Jul 2026The dihedral group is the mathematical formalism behind all the rotations and reflections of a regular polygon. For an n sided polygon, there are always n possible rotations, and n reflections, for 2 n possible symmetries. Combining any two symmetries gives another from the same group, that is what makes it a group in the mathematical sense. The theory of it is useful to know for gamedev. I was re
6 Jun 2026I’m fed up of hearing about how LLMs are next token predictors, and therefore they <cannot do some task> <aren’t really doing cognition> <are just guessing>. There’s lots of philosophical objections, but fundamentally, framing AI as next token predictors in the first places is just misleading and inaccurate. Here’s why LLMs aren’t naive next token predictors. What is Next Token Prediction Let’s fi
17 May 2026