Lurker News
This is the first iteration of a short game I’m making that tries to interactively explain some of my favorite math questions / ideas. My goal is mostly to get the player curious and not necessarily to explain absolutely everything.

There were a lot of fun technical parts to building this:
- For implementation reasons, it’s much easier if the lines all have integer intersection points with each other. To do this, when a new line is added I “cheat” by rounding intersections to integers and then splitting the old lines at the intersection into new linds (with potentially different slopes) going through the rounded point
- I had to draw semi accurate maps of actual places (UK, South America, US west coast) in the HTML canvas using just line segments. I tried a few different solutions, including using SVG data. I ended up using the topojson library to give nice line approximations to GeoJSON maps
- I use a simple backtracking algorithm to handle the live coloring of graphs
- I use turf.js’s polygonize function to handle finding polygons from line segments (very happy I didn’t have to implement this myself!)
- I wanted to make the game as mobile friendly as possible (don’t think I’ve nailed this quite yet)
There were also a few tradeoffs I made:
- I wanted give links earlier in the game for players to learn more, but I decided to wait until the end to maintain the flow of the game
- In order to make the game more mobile-friendly, I generally stuck to maps with a small number of regions (at least for maps people have to interact with them). So for the most part all of the instances in the game are “easy”

Comments (172) 62 threads

Earlier comments
noodlesUK3 replies#
Just FYI the “map of the UK” includes the Republic of Ireland, which is very much not part of the UK.

There’s not a 100% great term for the collective unit of land. Generally people go with “UK & Ireland” if they’re trying to be sensitive.

HeatrayEnjoyer2 replies#
'British Isles' identify the geographic islands.
messe#
It's not a popular term in Ireland. Britain and Ireland is often preferred, and has less colonial implications.
MCSP1 reply#
Thanks for pointing this out! Switched to "British Isles" -- update should be percolating now
messe3 replies#
The British Isles is also a somewhat controversial term with colonial implications, and it's not used by the government of Ireland[1]. "Britain and Ireland" would be a safer bet, as the map doesn't include any other islands.

https://en.wikipedia.org/wiki/Names_of_the_British_Isles

russellbeattie4 replies#
Diving into Wikipedia, apparently variations of the name "Britain" have been in use since 30BC, and referred to the big island, with the smaller islands grouped with it, e.g. British Isles.

The Irish may not like it, but they're fighting against two millenia of history.

Continue this thread — 4 replies

gowld#
Safest to just remove Ireland from the map. It's not needed for the demo.
MCSP#
Switched to "Britain + Ireland"!
L3viathan#
These kind of things are also why four colours are actually _not_ always enough, in the real world. Countries can have exclaves :)
joshlk3 replies#
That was fun.

On another note, I dislike how “Zero-Knowledge Proofs” are called proofs. It’s not a proof. You iteratively increase your belief that the result is true, like in experimentation, but that’s not a proof.

tyilo#
If someone has signed something cryptographically, wouldn't you say that the signature was a proof of someone with the private key signing it? (Even though it is possible to construct a valid signature without the private key - you just have to be very very very lucky)

I guess you also don't like the name Proof of Work.

hcs#
It might help to think of the sense of "proof" that's synonymous with "trial", rather than a specific formal math sense of proving a theorem from axioms by formal transformations.
fragmede#
zero knowledge corroboration isn't the same thing as a zero knowledge proof. If the provided evidence isn't enough, then you keep iterating until it's proven.
next_xibalba#
Although I still didn't fully understand the relation between zero knowledge proofs and the post-it example, this game is just kind of fun in its own right!

Load more comments