chanind / hanzi-writer

Chinese character stroke order animations and practice quizzes
https://hanziwriter.org
MIT License
3.44k stars 534 forks source link

Quiz mode: how to set accuracy for quizzes? #290

Closed ganqqwerty closed 1 year ago

ganqqwerty commented 1 year ago

Is there a parameter that sets accuracy for the quiz mode? The drawing width appears to be cosmetic.

ganqqwerty commented 1 year ago

Sorry for disturbing, I found it. It's a leniency option in a quiz() function. By default it's 1. The more this number is, the more mistakes it will forgive, so if you set it to 5, it would be super-sloppy mode. Setting it less than 1 will be very strict.