Red Blob Games
redblobgames.com
Red Blob Games
@redblobgames.com
Hi! I'm Amit Patel. I explain algorithms and math with interactive web pages (incl. pathfinding, hexagons, procgen maps, voronoi). Wrote Solar Realms Elite; helped w/Barren Realms Elite and Realm of the Mad God. https://www.redblobgames.com/
Side project blog post—from 2010 to 2024,
RotMG.com had used maps from my mapgen2 project. There are 2^33 possible maps. I didn't know which seeds they used. I figured … let me just try them all … how hard could it be? ;----)

Spoiler: found some! not all. www.redblobgames.com/blog/2025-11...
November 12, 2025 at 12:45 AM
Reposted by Red Blob Games
PROCJAM - the Procedural Generation Jam - is back for another year! Join us on itch.io this November for another week of making something that makes something - a bskybot, a videogame, a digital artwork, a dice table or something else!

🗓️ Nov 21st - Dec 1st
🔮 itch.io/jam/procjam
PROCJAM - The Procedural Generation Jam
A game jam from 2025-11-21 to 2025-12-01 hosted by PROCJAM. Let's Make Something! PROCJAM - the Procedural Generation Jam - is a creative coding jam about making things that make things. This normally...
itch.io
October 27, 2025 at 3:35 PM
Reposted by Red Blob Games
A blog post from last year, which I never posted here —

Bytecode VMs in surprising places
dubroy.com/blog/bytecod...
October 29, 2025 at 7:19 AM
Reposted by Red Blob Games
what I expected from @roguelike.club : "10 ways to generate a dungeon!"
what I got: existentially terrifying hypergeometry
October 25, 2025 at 9:43 PM
Reposted by Red Blob Games
Been playing around with various "attractors". You can try it out too! www.michaelfogleman.com/static/attra...
February 10, 2025 at 3:08 AM
Reposted by Red Blob Games
The question of "should I cooperate" shows up everywhere, from biology to geopolitics.

In my latest PerThirtySix piece, we explore the Prisoner’s Dilemma, starting from the basics and building up to population-level dynamics through interactive simulations!

perthirtysix.com/tool/prisone...
October 14, 2025 at 1:59 PM
Reposted by Red Blob Games
A nice shift in perceived colour between central and peripheral vision. The fixated disc looks purple while the others look blue.

The effect presumably comes from the absence of S-cones in the fovea.

From Hinnerk Schulz-Hildebrandt:
arxiv.org/pdf/2509.115...
September 24, 2025 at 12:04 PM
Reposted by Red Blob Games
You can just make things on the web collaborative by adding a single HTML attribute...
October 5, 2025 at 11:53 PM
Reposted by Red Blob Games
I have a sparkling new blog post for you all! "A Very Early History of Algebraic Data Types" traces the history from the first innovation by John McCarthy, through its early use in imperative programming, and to its mainstreaming in FP. Come check it out!

www.hillelwayne.com/post/algdt-h...
A Very Early History of Algebraic Data Types
Been quiet around here! I’ve been putting almost all of my writing time into Logic for Programmers and my whole brain is book-shaped. Trust me, you do not want to read my 2000-word rant on Sphinx post...
www.hillelwayne.com
September 25, 2025 at 4:52 PM
I've been fixing numerical precision issues in #mapgen4 but some of those issues led to interesting textures that I liked.

(It may be hard to see them on the screenshots)

I'd like to have interesting textures that are intentional instead of the result of a bug …
October 5, 2025 at 1:19 AM
I'm working on a slider that lets you control how deep the "folds" on the #mapgen4 mountains are
October 3, 2025 at 11:49 PM
New blog post: rewriting the mapgen4 river render www.redblobgames.com/blog/2025-09...

I had been drawing river segments on the cpu to a texture, and then reading that texture on the gpu. I changed it to draw river segments on the gpu directly.
October 3, 2025 at 8:10 PM
I'm outputting to a WebGL R16F texture in mapgen4. It has a float channel, so I thought … I can set my frag shader to write to "out float" instead of "out vec4". But nope! :) I will change it back to "out vec4" and output three dummy values, which get thrown away.

(I'm learning WebGL2 this week)
October 3, 2025 at 8:07 PM
Reposted by Red Blob Games
how I got better at debugging

permalink: wizardzines.com/comics/bette...
from our free zine "So you want to be a wizard": wizardzines.com/zines/wizard/
October 3, 2025 at 1:43 PM
Reposted by Red Blob Games
tips for reading code

permalink: wizardzines.com/comics/tips-...
from our free zine "So you want to be a wizard": wizardzines.com/zines/wizard/
October 1, 2025 at 7:24 PM
New blog post: after a long break, I'm upgrading some of mapgen4's code (features, performance, bugs, ui, etc.) www.redblobgames.com/blog/2025-09...
October 1, 2025 at 5:33 PM
Reposted by Red Blob Games
In The Clock of the Long Now, Brand describes a coniferous forest:

The needle changes within a year.
The tree crown over several years.
The patch over many decades.
The stand over a couple of centuries.
The forest over a thousand years.
The biome over ten thousand years.
September 28, 2025 at 1:01 PM
Reposted by Red Blob Games
ways to build expertise

permalink: wizardzines.com/comics/ways-...
from our free zine "So you want to be a wizard": wizardzines.com/zines/wizard/
September 26, 2025 at 1:43 PM
Blog post: if an AI is going to hallucinate incorrect things about my web site, maybe I should change my site so that it's correct ;) www.redblobgames.com/blog/2025-09...

More seriously, it's remarkably good at hallucinating things about my site that are *plausible*. Scary, but also maybe useful.
Harnessing ChatGPT hallucinations
www.redblobgames.com
September 22, 2025 at 11:59 PM
Reposted by Red Blob Games
invest in understanding

permalink: wizardzines.com/comics/inves...
from our free zine "So you want to be a wizard": wizardzines.com/zines/wizard/
September 22, 2025 at 1:43 PM
Reposted by Red Blob Games
September 17, 2025 at 4:21 PM
Reposted by Red Blob Games
New colors without shooting lasers into your eyes dynomight.net/colors/
July 17, 2025 at 4:01 PM
Reposted by Red Blob Games
bash tricks

permalink: wizardzines.com/comics/bash-...
from our zine "Bite Size Command Line": wizardzines.com/zines/bite-s...
September 3, 2025 at 7:24 PM
Weekend project: writing a simple search engine. Part 2 is about document ranking: www.redblobgames.com/blog/2025-08...
September 1, 2025 at 10:30 PM
Weekend project: building a (site) search engine www.redblobgames.com/blog/2025-08... just for fun! :)
Let’s write a search engine, part 1 of 2
www.redblobgames.com
September 1, 2025 at 2:48 AM