How Border Hop works: borders, routes and neighbours

Border Hop is a road trip without a car. You cross the world one land border at a time, from a start country to a goal, or you name every neighbour of one country. Behind both games is one table: which of the world's 197 countries touch each other on land. This page explains where that table comes from, how the shortest route is found, and how to get better at both games.

A world map with a route of gold countries linking a blue start country to a red goal country
A world map with a route of gold countries linking a blue start country to a red goal country

Which countries are neighbours

Two countries are neighbours when they share a land border. The game reads this from the map itself: on Natural Earth's 1:50 million map, countries that touch share the same border line, point for point, so the game knows exactly which outlines meet. Sea crossings do not count, however short: the United Kingdom and France are linked by a tunnel, not a border, and Denmark and Sweden by a bridge. Two borders are too small for the map and are added by hand: Spain and Morocco meet at Ceuta and Melilla, and Morocco and Mauritania count as neighbours through Western Sahara, which is not one of the 197 countries.

Overseas parts count

A country's territory includes its overseas parts, so their borders count too. France borders Brazil and Suriname through French Guiana in South America, which makes France one of the countries with the most neighbours. Daily and free routes always stay on one landmass, the Americas or Africa with Europe and Asia, so a route never depends on that trick, but the Neighbours game asks for them.

The shortest route

The shortest route between two countries is the one that passes through the fewest countries, whatever their size: Russia counts as much as Liechtenstein. The game finds it with a breadth-first search, the classic way to find the fewest steps in a network: first all neighbours of the start, then their neighbours, and so on until the goal is reached. A country is on a shortest route when the steps from the start to it plus the steps from it to the goal add up to the shortest number, and a small detour when they add up to at most two more.

Records and tips

China and Russia have the most neighbours, fourteen each, followed by Brazil with ten and France with its overseas borders. Island countries such as Iceland, Japan and Australia have none, and Portugal, Denmark, Canada, Ireland, South Korea and Lesotho have only one. In Route, work from both ends: think of the neighbours of the start and of the goal, and pick the ones that face each other. Big countries such as Russia, China, Brazil and the Democratic Republic of the Congo are shortcuts across a continent. In Neighbours, walk around the country's border in your head, clockwise, and do not forget the tiny ones such as Andorra, Liechtenstein or the Vatican.

Frequently asked questions

Why does a country I named turn grey?

It does not help: every route through it is at least three countries longer than the shortest route. It still counts as one of your guesses, and it can still link up if the countries around it are named too.

Do I have to find exactly the shortest route?

No. You win as soon as the countries you named link the start to the goal, through any route. Finding it in as many guesses as the shortest route is a perfect game, and you have five guesses more than that before you run out.

Why are the United Kingdom and France not neighbours?

Because they have no land border: the Channel Tunnel runs under the sea. Only borders on land count, so bridges and tunnels do not link countries in the game.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

Play Border Hop