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/
I made a bookmarklet out of it so that I can use it on any page. I bookmarked:

javascript:(async function(){const {attachEditorToElement} = await import ("https://www.redblobgames.com/mjs/scrubbable-codemirror.js");for (let el of document.querySelectorAll("svg")) attachEditorToElement(el)})()
January 9, 2026 at 10:47 PM
How cool!!
January 9, 2026 at 10:31 PM
awesome!
January 8, 2026 at 8:07 PM
Thank you Craig! The funny/surprising thing is that when I sat down to write the blog post I felt like I hadn't done much that year. But going through all my notes made me realized I had done plenty. :)
January 8, 2026 at 5:13 PM
Thanks! It was one of those things I wish I had set up years ago :-) and I am looking forward to being able to use it on future projects.
January 6, 2026 at 9:19 PM
Yikes!!
January 6, 2026 at 9:17 PM
Annual review blog post: www.redblobgames.com/blog/2025-12...
What I did in 2025
www.redblobgames.com
January 6, 2026 at 4:00 PM
Reposted by Red Blob Games
A quick #intro for the lovely people here on Bluesky... nice to meet you!

listen here: pod.link/1810797958 (easy listening)
read here: nonzerosum.games (more posts, pics and sims)
July 5, 2025 at 6:54 PM
Reposted by Red Blob Games
Heard from a few folks that they procrastinate publishing because they want to make sure it’s good enough and I totally get it, I worry about that too.

But I’ve gotten pretty good at deciding enough is enough and going ahead anyway so here’s a thread with things I don’t like but decided were fine.
December 28, 2025 at 9:14 AM
Reposted by Red Blob Games
debugging tip: change one thing at a time

permalink: wizardzines.com/comics/chang...
December 22, 2025 at 2:43 PM
Reposted by Red Blob Games
Creative people display contradictory personality traits. This finding has stuck with me since I read it over 20 years ago in psychologist Mihaly Csikszentmihalyi’s book Creativity: Flow and the Psychology of Discovery and Invention.
December 14, 2025 at 2:01 PM
It's a little bit of a hack but the idea is to replace just the "C" or "F" character at the end of the regexp match with the string "C (113.0°F)" or "F (26.7°C)". That string acts as a single character for text editing purposes.

gist.github.com/redblobgames...
December 16, 2025 at 6:46 PM
I hadn't realized it before but #emacs syntax highlighting (font lock) can do a lot more than assign color. Here I'm parsing the string into a number, doing a calculation, then generating text to show the result
December 16, 2025 at 5:57 PM
Thank you for this and the other detailed reports! I have learned so much CSS from them.
December 12, 2025 at 9:48 PM
Nice tool! I had previously been using token-explorer for my experimentation github.com/willkurt/tok...

(blog post: amitp.blogspot.com/2025/10/llms...)
GitHub - willkurt/token-explorer: A simple tool that let's you explore different possible paths that an LLM might sample.
A simple tool that let's you explore different possible paths that an LLM might sample. - willkurt/token-explorer
github.com
December 9, 2025 at 10:13 PM
Gell-Mann Amnesia?
December 9, 2025 at 12:37 AM
Reposted by Red Blob Games
this fall I worked with the core Git folks on writing an official data model for Git and it just got merged! I learned a few new things from writing it. github.com/git/git/blob...
git/Documentation/gitdatamodel.adoc at master · git/git
Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documen...
github.com
December 2, 2025 at 5:01 PM
It is not.
November 26, 2025 at 6:44 PM
🙀
November 23, 2025 at 4:45 AM
I'm very interested in that card but I live 800 miles away so I hope there will be another opportunity sometime :)
November 20, 2025 at 9:29 PM
In the US we sometimes do something similar to highways. Examples in california:

www.google.com/maps/@37.629... (I-380 west end is a stub left for future expansion)

en.wikipedia.org/wiki/Joe_Col... (I-680, was left for many years, hoping that there would be funding someday to complete them)
www.google.com
November 20, 2025 at 7:52 PM
I was looking through my old projects and found this. I love how it looks and want to do more with this www.redblobgames.com/x/1638-voron...
November 18, 2025 at 11:26 PM
Reposted by Red Blob Games
As an example of the sort of stuff on there, one of the articles is a short writeup of a prototype I mentioned on bluesky a year or so back. An approach to generating a top down city map.

www.nullpointer.co.uk/generating-c...
Generating City Maps
This post explains how I coded a city map generator for a…
www.nullpointer.co.uk
October 13, 2025 at 8:44 AM
Do the squirrels like you because you collect tabs like they collect acorns ? ;-)
November 15, 2025 at 12:26 AM