Compare commits
2 Commits
2104d7008c
...
985f933859
Author | SHA1 | Date | |
---|---|---|---|
|
985f933859 | ||
|
3bb036b7c5 |
@ -14,6 +14,7 @@ with open("prompts.txt") as f:
|
||||
stripped = "".join(raw_sentences).strip().split("\n")
|
||||
sentences["easy"] = [ line for line in stripped if "*" not in line ]
|
||||
sentences["hard"] = [ line.replace("*","") for line in stripped if "*" in line ]
|
||||
sentences["all"] = [ line.replace("*","") for line in stripped ]
|
||||
|
||||
print(f"[INFO] Found {len(sentences['easy'])} easy prompts")
|
||||
print(f"[INFO] Found {len(sentences['hard'])} hard prompts")
|
||||
@ -22,7 +23,7 @@ print(f"[INFO] Found {len(sentences['hard'])} hard prompts")
|
||||
""" Postprocess the content string to look nice in the latex tabular cell """
|
||||
def make_cell(content: str):
|
||||
return fr"""\vspace{{0.5cm}}
|
||||
\rule{{3cm}}{{0.15mm}} \, \newline \small {content}
|
||||
\rule{{3cm}}{{0.15mm}} \, \vspace{{.3cm}} \newline \small {content}
|
||||
\vspace{{0.5cm}}"""
|
||||
|
||||
def substitute_texts(text: str, substitutions: list[str]):
|
||||
@ -39,7 +40,8 @@ def gen_board(num: int = 1):
|
||||
print(f"Generating {num} boards")
|
||||
|
||||
for i in range(1, num+1):
|
||||
prompts = [ *random.sample(sentences["easy"], num_easy), *random.sample(sentences["hard"], num_hard) ]
|
||||
#prompts = [ *random.sample(sentences["easy"], num_easy), *random.sample(sentences["hard"], num_hard) ]
|
||||
prompts = [ *random.sample(sentences["all"], num_total) ]
|
||||
random.shuffle(prompts)
|
||||
|
||||
pick = substitute_texts(latex_template, prompts)
|
||||
|
@ -6,13 +6,13 @@ kann Schach spielen
|
||||
konnte \newline $\int\limits_{5}^{8} (2x + 1) \text{dx} = \quad $ \newline ausrechnen*
|
||||
hat einen Namen mit weniger als 5 Buchstaben
|
||||
reiste weiter als 100km an
|
||||
{\scriptsize studiert(e), aber nicht Informatik oder CoLi*}
|
||||
studiert(e), aber nicht Informatik oder Computerlinguistik*
|
||||
hat keine Geschwister
|
||||
ist single
|
||||
konnte drei Star~Wars Charaktere nennen
|
||||
konnte drei Star Wars Charaktere nennen
|
||||
konnte fünf Animes nennen
|
||||
hat blaue Augen
|
||||
{\scriptsize konnte 15 Sekunden auf einem Bein stehen}
|
||||
konnte 15 Sekunden auf einem Bein stehen
|
||||
ist veganer
|
||||
ist im Saarland geboren
|
||||
spielt ein Instrument
|
||||
@ -20,7 +20,7 @@ hat ein Haustier
|
||||
benutzt als Betriebssystem Linux
|
||||
kennt Ludmilla schon länger als zehn Jahre
|
||||
kennt Karl schon länger als zehn Jahre
|
||||
{\scriptsize kannte mich nicht, hat aber ein Selfie mit mir gemacht}
|
||||
kannte mich nicht, hat aber ein Selfie mit mir gemacht
|
||||
schlug den Bräutigam im Armdrücken
|
||||
ist Linkshänder
|
||||
kann eine Krawatte binden
|
||||
@ -29,23 +29,23 @@ trinkt keinen Kaffee
|
||||
hat schonmal ein Pokémon-Spiel gespielt
|
||||
hat heute schon Bier getrunken
|
||||
ist größer als Karl
|
||||
{\scriptsize konnte vor meinen Augen einen Zauberwürfel lösen*}
|
||||
konnte vor meinen Augen einen Zauberwürfel lösen*
|
||||
war schonmal in der Natur klettern*
|
||||
hatte dieses Jahr Corona :-(
|
||||
kann 5km unter 30 Minuten laufen
|
||||
identifiziert sich als Ravenclaw {\scriptsize (Harry Potter Haus)}*
|
||||
identifiziert sich als Ravenclaw {\footnotesize(Harry Potter Haus)}*
|
||||
mag Katzen mehr als Hunde
|
||||
kann Stricken
|
||||
{\scriptsize hat schonmal ein Buch von Mark-Uwe Kling gelesen}
|
||||
hat schonmal ein Buch von Mark-Uwe Kling gelesen
|
||||
aß noch nie in der Mensa der UdS
|
||||
war schonmal auf einem Musikfestival
|
||||
hat eine Lebensmittelunverträglichkeit
|
||||
{\scriptsize hat außerhalb von Saarbrücken studiert*}
|
||||
{\scriptsize fuhr an einem Tag mehr als 100km mit dem Fahrrad*}
|
||||
hat außerhalb von Saarbrücken studiert*
|
||||
fuhr an einem Tag mehr als 100km mit dem Fahrrad*
|
||||
besitzt ein Auto
|
||||
war schonmal auf Mallorca
|
||||
hat mal in einer WG gewohnt
|
||||
war schonmal in der Zeitung*
|
||||
{\scriptsize hat schonmal in einem Theaterstück mitgespielt*}
|
||||
hat schonmal in einem Theaterstück mitgespielt*
|
||||
hat bereits drei Kontinente bereist*
|
||||
hat im August Geburtstag
|
||||
|
@ -8,7 +8,7 @@ latex_template=r"""
|
||||
\usepackage{eurosym}
|
||||
|
||||
\begin{document}
|
||||
\setlength\tabcolsep{1cm}
|
||||
\setlength{\tabcolsep}{20pt}
|
||||
\hspace{0pt}
|
||||
\vfill
|
||||
|
||||
@ -23,9 +23,7 @@ Jede Person darf \\ höchstens einmal eingetragen werden.
|
||||
Für jedes vollständig (9 Felder) ausgefüllte Bingo, das bei \\ Dominic oder Jan abgegeben wird, bekommt das Brautpaar 2 \euro.
|
||||
|
||||
\vfill
|
||||
\resizebox{15cm}{!}{
|
||||
% \begin{tabular}{|m{4cm}|m{4cm}|m{4cm}|}
|
||||
\begin{tabular}{| >{\centering\arraybackslash}m{1in} | >{\centering\arraybackslash}m{1in} | >{\centering\arraybackslash}m{1in} |}
|
||||
\begin{tabular}{| >{\centering\arraybackslash}m{4.5cm} | >{\centering\arraybackslash}m{4.5cm} | >{\centering\arraybackslash}m{4.5cm} |}
|
||||
\hline \centering
|
||||
[[text0]]
|
||||
& \centering
|
||||
@ -49,7 +47,6 @@ Für jedes vollständig (9 Felder) ausgefüllte Bingo, das bei \\ Dominic oder J
|
||||
\\
|
||||
\hline
|
||||
\end{tabular}
|
||||
}
|
||||
|
||||
\end{center}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user