mathigon / textbooks

Source code of Mathigon's interactive textbooks
https://mathigon.org
357 stars 154 forks source link

Prevent cheating in Königsberg Bridges #11

Closed plegner closed 6 years ago

plegner commented 6 years ago

For the Königsberg Bridges problem in Graphs and Networks, you can cheat by moving the cursor outside the city area:

screen shot 2018-04-21 at 14 42 48
plegner commented 6 years ago

Fixed in https://github.com/mathigon/textbooks/commit/6c882cbcf55c609a6d26e48436c385eb3cad620a

(Although the pointerenter and pointerleave events could use a lot more cleanup work…)

DegrangeM commented 4 years ago

Still possible with scrolling, and probably with zooming too.

image

But it's probably a bad idea to try to fix that.

plegner commented 4 years ago

Fixed in https://github.com/mathigon/textbooks/commit/34900982c7e243d40caa4d678dc6513c74c180df by forcing a stop event whenever you start scrolling or zooming.

DegrangeM commented 4 years ago

Still possible with right click ;)

DegrangeM commented 4 years ago

It is also possible to cheat by spamming left click while moving over little distance. This allow to cross water.

image