An in-depth interactive explanation of how to avoid case-by-case evaluation when on a grid. See original project for the code this is based off of.