Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    Red Blob Games

    redblobgames.com · Personal blog · on HN since 2012

    Amit Patel's site of interactive visual explanations of algorithms and math for game development, such as pathfinding, hex grids and noise.

    Visit blogRSSHN submissions
    GamesProgrammingMath
    What HN says

    HN commenters praise it as some of the best explanations of pathfinding and noise, and call the hex grid guide a favorite and a model for interactive writing.

    Stats for nerds
    199HN people shared it
    139linked in comments
    5.4Kstory points
    Aug 2026last shared
    2014people per year2026

    Top posts on HN

    1. 1
      Hexagonal grids for games
      58 people · 2.1K points · first shared 2013 · 74 comments on HN
    2. 2
      Introduction to A*
      34 people · 1.2K points · first shared 2014 · 103 comments on HN
    3. 3
      Pathfinding for Tower Defense
      5 people · 357 points · first shared 2014 · 63 comments on HN
    4. 4
      Delaunay and Voronoi on a sphere
      2 people · 254 points · first shared 2018 · 35 comments on HN
    5. 5
      Elevation Control
      2 people · 231 points · first shared 2017 · 16 comments on HN
    6. 6
      Implementation of Hex Grids
      3 people · 174 points · first shared 2015 · 15 comments on HN
    7. 7
      Flow Field Pathfinding
      2 people · 167 points · first shared 2024 · 27 comments on HN
    8. 8
      Line drawing on a grid
      2 people · 127 points · first shared 2014 · 21 comments on HN
    9. 9
      Making of “Introduction to A*”
      1 person · 107 points · first shared 2014 · 12 comments on HN
    10. 10
      Data structure for triangle meshes
      1 person · 92 points · first shared 2017 · 12 comments on HN

    What HN people wrote when they linked it

    • nrjamesJan 2018

      IMO, to start with AI, it's best to start as simple as possible so that you understand the algorithms that drive things that are accessible to tweak. If you are a gamer, think about the various AI routines that control pathfinding, resource collection, and strategy for computer players in strategy games. Some of the concepts of BFS and DFS build into Minimax strategies and other types of "simple" approaches to searching decision spaces/states for optimal approaches to problem solving. This gets into the development of heuristics for approximating outcomes. All of this is fantastic baseline for understanding more complex AI and machine learning algorithms. While it's easy to jump into ML or AI at a higher level, without the baseline understanding of the search algorithms and probability landscapes that are underpinnings to advanced work in these fields, you'll probably never feel like you understand what is going on.

      You can find some fun tutorials here: https://www.redblobgames.com

      The CS 188 "Intro to AI" class at Berkeley is excellent: http://ai.berkeley.edu/home.html

      It used to be on edx.org but I think a lawsuit about accessibility required them to remove it? Perhaps you can find it in the edX archives.

      Edit: looks like you can find the lecture videos and other resources on the Berkeley site: http://ai.berkeley.edu/lecture_videos.html

    • kevindammApr 2024

      Ah, redblobgames! I remember their hexagonal coordinate system post from many years ago:

      https://www.redblobgames.com/grids/hexagons/

      An excellent example of their more interactive posts and great for those interested in hex-grid rendering and navigating.

      edit: wow, over 10 years ago and the content has been updated but the look and feel is much as I remember it. This was before reactive systems took over the web, too, so the 'toggle selection here, see updates everywhere' was quite notable for the time.

      On the actual topic of the post.. I think flow fields easily get overshadowed by waypoints and other hierarchical approaches. Or, folded into the heuristic function for A*.

    • zelphirkaltAug 2024

      I think the follow up games to HOMAM3 suffered a lot from focus on graphics and looks, opposed to investing more time into gameplay, map design, and computer opponents. They lost a lot of charm. Skeptical, whether yet another 3D graphics title will reach the heights of HOMAM3. Just too much effort spent on unimportant stuff. Maybe hire some good 2D artists.

      Big pet peeve also: A Heroes game without a hex grid battle field just feels wrong. Square logic is easier, but come on, get good developers and look at something like https://www.redblobgames.com/grids/hexagons/ and figure out the logic. It is not magic.

    • amitpSep 2023

      This year I've mostly been updating existing pages in small ways (examples: [1] [2]). This week I've been fixing broken links, which isn't a good HN submission.

      I think the best candidate is https://www.redblobgames.com/making-of/draggable/ . It's from earlier this year and hasn't been posted to HN yet (I think).

      [1] https://simblob.blogspot.com/2023/04/explaining-hexagon-layout-class.html
      [2] https://simblob.blogspot.com/2023/04/improving-mapgen4s-boundaries-part-2.html

    • spacetraveler11Jun 2022

      XBattle looks so cool, amazing that this game was made 30 years ago. Kind of similar to a game I had been working on (and might just get out of the dustbin to reactivate).

      Anyone looking to get started with hexagonal grids should check out [1] from Red Blob Games. Comprehensive tutorial on hex grids explaining coordinates, fields of vision, pathfinding and more.

      [1] https://www.redblobgames.com/grids/hexagons/

    • pkstnAug 2024

      Planning to write blog post(s) about how i made the game, but basically the techniques i used are the following:

      - 2D ray tracing visibility algorithm (spolight): https://www.redblobgames.com/articles/visibility/

      - Simplex noise procedural maps: https://www.redblobgames.com/maps/terrain-from-noise/

      - WebGL2 rendering

      - Websockets with binary data

      - Deno

      - Hetzner dedicated servers

      - Docker Swarm Mode

    Related

    Red Blob Games Blogsimblob.blogspot.com27 people

    Verb-Noun vs. Noun-Verb

    Red Blob Games Blog
    Personal · last shared 2025
    Amit Pateltheory.stanford.edu/~amitp28 people

    Introduction to A* (1997)

    Amit Patel
    Personal · last shared 2025
    Paul Bourkepaulbourke.net79 people

    “Burning Ship” fractal

    Paul Bourke
    Personal · last shared 2026
    Gaffer On Gamesgafferongames.com159 people

    UDP vs TCP

    Gaffer On Games
    Personal · last shared 2026
    Not a Monad Tutorialnotamonadtutorial.com40 people

    Weld: Accelerating numpy, scikit and pandas as much as 100x with Rust and LLVM

    Not a Monad Tutorial
    Publication · last shared 2023
    Ignore the Codeignorethecode.net112 people

    Oberon (2009)

    Ignore the Code
    Personal · last shared 2026
    Inconvergentinconvergent.net42 people

    On generative algorithms

    Inconvergent
    Personal · last shared 2025
    Tom Moertelblog.moertel.com63 people

    A Great Old-Timey Game-Programming Hack

    Tom Moertel
    Personal · last shared 2026