-
Notifications
You must be signed in to change notification settings - Fork 2
/
outline.txt
86 lines (75 loc) · 1.89 KB
/
outline.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Suß <--> Bitter
Billig <--> Teuer
Herstellungsort (USA/Schweiz/Deutschland)
Laktose inteoleranz?
Was soll rein?
- Nichts
- Nüsse bzw. was für nüsse?
- Sußes wie Karamell
- Salziges wie Erdnusbutter oder
{
schokolade: [
{
name: "Milka MaXX Toffee",
typ: "milch",
geschmack: "suß",
preis: "billig",
ort: "deutschland",
hersteller: "milka",
inhalt: "toffee"},
{name: "Lindt 90%", typ: "dunkel", geschmack: "bitter", preis: "mittel", ort: "schweiz", hersteller: "lindt", inhalt: "none"},
{name: "Ritter Sport", typ: "milch", geschmack: "suß", preis: "mittel", ort: "deutschland", hersteller: "Ritter Sport", inhalt: "none"},
]
}
Quiz logic
attributes:
- type
- taste
- price
- filling
goal: find the most fitting chocolate given the provided criteria
Process Possiblities
1. Forward Search:
- Iterate through list of all chocolate entries
- Filter out all entries without at least one fitting criteria
- Iterate through remaining entries
- Filter out all entries without at least two fitting criteria
- Repeat until no entries exist
- Return list with most fitting criteria
--> 2. Reverse Search:
- Iterate through list of all chocolate entries
- Find all entries with all fitting criteria
- Iterate through list again
- Find all entries with all-1 fitting criteria
- Repeat until at least one entry is found
- Return entry
[
{
"name": "Milka Mmmax Toffee Ganznuss",
"typ": "milch",
"geschmack": "suß",
"preis": "billig",
"ort": "deutschland",
"hersteller": "milka",
"inhalt": ["karamel"],
"url": "https://www.milka.de/produkte/milka-mmmax-toffee-ganznuss"
},
]
[
{
"benutzername": "",
"passwort": "",
},
{
"benutzername": "",
"passwort": "",
},
{
"benutzername": "",
"passwort": "",
},
{
"benutzername": "",
"passwort": "",
},
]