On 02/09/2016 05:06 PM, Enrico Zini wrote: > On Tue, Feb 09, 2016 at 07:04:11AM +1100, Riley Baird wrote: > >>>> Possibly someone should set up an online quiz thing, where you're >>>> shown a package name, its short description, and three randomly chosen >>>> short descriptions, and have to guess which short description is >>>> correct. > [...] >>> (script attached) >> I've modified the script so that it is interactive. > > Good one! I made it run multiple times so that there can be more play > for each lengthy initial computation: > > https://github.com/spanezz/pkgquiz > > > Enrico
There's an RC bug... :P # ./pkgquiz Collecting package information... What is the description for package xfce4-appfinder? Traceback (most recent call last): File "./pkgquiz", line 122, in <module> cont = quiz.run_once() File "./pkgquiz", line 81, in run_once cand_descs = self.pick_descs(name) File "./pkgquiz", line 44, in pick_descs cand = self.select_random() TypeError: select_random() missing 1 required positional argument: 'name'