summaryrefslogtreecommitdiff
path: root/games/quiz
AgeCommit message (Collapse)Author
2024-09-02In our fight against the cosmos, in the chaos of the source tree, weTheo de Raadt
deleted the greek quiz. Some people felt trauma, and called out our hubris. At my request, Carson Harding performed a metamorphosis of the quiz -- kudos to him! After playing, I consider it the acme of quizzes. ok jmc mglocker
2024-09-02In our fight against the cosmos, in the chaos of the source tree, weTheo de Raadt
deleted the greek quiz. Some people felt trauma, and called out our hubris. At my request, Carson Harding performed a metamorphosis of the quiz -- kudos to him! After playing, I consider it the acme of quizzes. ok jmc mglocker
2024-08-24Make clear it's about *ship* parts when you list the quiz(6) subjects.Marcus Glocker
ok jmc@
2024-08-24spellingJonathan Gray
2024-08-24the index is alphabetically sorted;Jason McIntyre
2024-08-23The greek quiz is so obscure that it is ridiculous -- noone can playTheo de Raadt
this. Replace it with a new quiz about galley (ship) parts. This commit changes the *LAST UNMODIFIED ORIGINAL FILE* (meaning revision 1.1.1.1) from the original import that created OpenBSD on Oct 18, 1995. With this commit, we have completed an amusing mission of replacing the final parts of the original OpenBSD. We have reached OpenBSD of Theseus. ideas & assistance from mglocker, naval terminology help from jmc
2024-08-23Speed up script by using awk(1).Marcus Glocker
Discussed with deraadt@
2024-08-23fix spelling of sequenceTheo Buehler
ok mglocker
2024-08-23must use sh to run the script, because /usr/src may be noexecTheo de Raadt
2024-08-22Fix answer.Florian Obser
2,$-1g/^/.,.1j does not combine every even-numbered line with the next odd-numbered line. One correct way is 2,$-1g/^/.,+1j Pointed out by ed1conf on mastodon.
2024-08-22Charles III succeeded Elizabeth II in the 21st century.Florian Obser
OK jmc, mlarkin
2024-08-22Generate areas datfile from /usr/share/misc/na.phone during make.Marcus Glocker
A deraadt/mglocker production
2024-08-22Add Tribonacci number sequence.Marcus Glocker
Proposed by Anisja Mayer (math. student from Basel). ok deraadt@
2024-08-21unfair to discriminate against 0Theo de Raadt
2024-08-21This quiz is pretty old. Don't know when this happened, but it seemsTheo de Raadt
the wellknown name of "tupa inca yupanqui" has evolved to be either "topa inca yupanqui" or "tupac inca yupanqui", so accept those answers. research by claudio, inhouse inca expert
2024-08-21accept capital letter answersTheo de Raadt
2024-08-21difficult sequence for a mathematician to identifyTheo de Raadt
2024-08-21satisfy the number version of the quiz; with mglockerTheo de Raadt
2024-08-21Add a simple random number sequence to the questionsTheo de Raadt
ok mglocker
2024-08-21Add lions.Marcus Glocker
suggested and ok jmc@
2024-08-21Add numeric morse codes.Marcus Glocker
ok jmc@
2024-08-21Hippo and rhino babies are also calf's.Marcus Glocker
ok jmc@
2024-08-21Add new substraction problem which difference results in the answer to theMarcus Glocker
ultimate question of life, the universe, and everything. ok jmc@
2024-08-19add missing apostrophe;Jason McIntyre
2024-08-19robert burns: to a mouseJason McIntyre
-The best laid schemes o' mice an' men gang aft a-gley{,}:\ +The best laid schemes o' mice an' men gang aft agley{,}:\ most sources i've checked use "best-laid", but not all, so i've erred on the side of caution;
2024-08-19catharine howard -> catherine howard;Jason McIntyre
2024-08-19opration -> operation;Jason McIntyre
2024-08-19promitto: promise, not primiseJason McIntyre
2022-12-18add Czechia as an alternative for Czech RepublicDaniel Dickman
2022-08-08fully switch quiz(6) to getline; diff from Ben Fuller (ben [at] bvnfOmar Polo
space), ok millert@
2022-07-06update countres and capitals in quiz(6)Daniel Dickman
Changes: - update country and capital names that have changed in recent years - remove the formal prefix from South Africa for consistency with other country names - add additional capitals for countries with multiple capitals - add "The" as optional prefix for The Gambia and The Bahamas - add missing suffix "City" to a few capitals - add many missing countries NetBSD appears to have also added territories which I've not added in this update. The removal of The Hague for The Netherlands was taken from NetBSD and confirmed by otto@ The duplicate Turkey and Georgia entries have not been touched. Prompted by a diff by Ben Fuller, who also provided much helpful feedback.
2021-03-11quiz: handle line continuation in data files correctly, switch to getline(3)Christian Weisgerber
Specifically, the following quiz.db line foo:\ bar was parsed into "foo:bar\n", which made it impossible to answer correctly. Bug reported and inital fix from Alex Karle, partially reworked by yours truly, further input from millert@
2021-01-21some updates from pjanzen;Jason McIntyre
2018-08-24Remove a few too early pledge(2)s on games/ and apply them a little bit laterRicardo Mestre
but with much reduced permissions ("stdio tty" if ncurses based and "stdio" for the ones that only perform basic operations). There's still a few games that we cannot yet remove their fs access, through pledge(2), since they open files on demand and too late, this might get revisited in the future. OK tb@
2016-12-03elements 113, 115, 117, and 118; from pjanzenJason McIntyre
2016-03-07- General changes:mestre
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable - Replace hardcoded program strings by getprogname(3) - Specific changes: - atc(6): this used -? and -u for usage(), remove both from game and manpage - bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h - hunt(6): replace fputs(3) by fprintf(3) OK tb@ after his suggestions
2016-01-10As per style(9), remove remaining lint-style comments from games/mestre
OK tb@
2016-01-07Some basic code maintenance in games/tb
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time discussed with and ok mestre@
2016-01-04More cleanup and sorting on header sectionmestre
OK tb@ and he also pointed out that for consistency with rest of the tree we should include termios.h instead of sys/ttydefaults.h, where applicable
2016-01-03About 13 years ago when the idiom srandom(time()), and sometimesmestre
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it. Additionally, earlier than that, 18 years ago, random(6) was one of the first consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but these days we pull it from stdlib.h, which is already done, so while here remove dev/rndvar.h also. "seems comprehensive to me" deraadt@ and OK tb@
2015-12-25Declare usage() functions as __dead void, if they don't return, on games ↵mestre
section. Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore. OK tb@
2015-12-06Treat quiz the same way as the other games and try to preserve the looktb
and feel. Revert previous and allow the pager with pledge "proc exec". Play the game with pledge "stdio rpath". Discussed with tedu@
2015-10-25just dump the help on stdout with messing about with a pager.Ted Unangst
makes pledge much simpler. from jan stary
2015-07-16flower & bird adjustments for Nunavut, from pjanzenTheo de Raadt
2014-12-03in the recent update of capitals, this critical file was forgottenIngo Schwarze
2014-12-02delete unused, almost empty fileIngo Schwarze
2014-12-02get rid of line-printer-era backspace-encoding of diacriticals;Ingo Schwarze
patch from pjanzen@; ok jmc@
2014-11-24Adjust ordering; from pjanzenTheo de Raadt
2014-11-24Add two new IUPAC elements, and adjust the atomic weights of some.Theo de Raadt
from pjanzen
2014-11-22Update to gravely outdated places to visit, from Jack SzmidtTheo de Raadt