Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,19 @@ This is the repo for https://play.google.com/store/apps/details?id=atorch.shorte
I first released this app in 2014, around the same time as https://github.com/atorch/probability_puzzles.
Shortest path didn't get nearly as many installs as probability puzzles, so I ended up forgetting about
this one and let it gather dust for many years.
I'm going to add it to github and try to get it working again in 2023 :-)
I'm going to add it to github and try to get it working again in 2023 :-)
## Map screen

The "Study the Map", "Review Map" and "Map hint" screens draw country borders with a small custom view
(`CountryMapView`): no map SDK, no API key, no network access. The country polygons come from
[Natural Earth](https://www.naturalearthdata.com/) (public domain) and are bundled in
`app/src/main/assets/world_map.bin`, which is generated by a dependency-free Python script:

```bash
curl -L -o /tmp/ne_10m_admin_0_countries.geojson \
https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_admin_0_countries.geojson
python3 scripts/build_world_map.py /tmp/ne_10m_admin_0_countries.geojson
```

The script maps every puzzle country name in `strings.xml` to one or more Natural Earth units (see `GAME_UNITS`)
and fails if any name is missing, so re-run it whenever the country list changes.
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
android:exported="false"
tools:node="merge">
</activity>
<activity
android:name=".ReviewMap"
android:label="@string/title_activity_review_map"
android:exported="false">
</activity>
</application>

</manifest>
Binary file added app/src/main/assets/world_map.bin
Binary file not shown.
Loading
Loading