Think you know your U.S. states? Test your geography skills and creativity with Mapped, Drawn & Bordered, a fun and challenging game that puts your state-drawing abilities to the test! Whether you're a geography buff or just looking for a unique way to pass the time, this game offers an entertaining way to explore the United States while testing your geography and map drawing skills.
I've always loved Time's See How Well You Can Draw All 50 States, so I decided to create my own state-drawing game.
In Time's game, you draw each U.S. state from memory, one at a time. After each drawing, the game grades your accuracy and adds your version of the state to a map of the United States.
My new game Mapped, Drawn & Bordered, offers a new twist. You start the game by selecting a U.S. state from a drop-down menu and then draw that state on top of an interactive map. The map includes town and city names to give you a few helpful clues, but it excludes the actual state borders and labels.
Once you've completed your drawing, the game calculates a percentage score based on how closely your sketch matches the actual state border.
How the Game was Made
Map Library & Map Tiles
Mapped, Drawn & Bordered uses the Maplibre mapping library with OpenFreeMap map tiles. OpenFreeMap allows free customization of maps, which was essential for this game. This means I was able to use Maputnik to remove the state borders and the state name labels from the map used in Mapped, Drawn & Bordered.
Drawing Tools
The drawing tools in Mapped, Drawn & Bordered are provided by the mapbox-gl-draw plug-in. mapbox-gl-draw allows you to add drawing tools to Mapbox and Maplibre powered maps.
Scoring
The scoring is all handled by Turf.js. Turf's advanced geospatial analysis operations are used in the game to compare the player drawn polygons to the actual state polygons. The scoring system is very simple. It is based on this formula: