1
+ import sys
1
2
class engine ():
2
- def __init__ (self , questions ):
3
-
3
+ def __init__ (self , questions , min_points , max_points ):
4
+ """We all love Tux aren't we."""
4
5
self .questions = questions
5
- for i in range (len (questions )):
6
+ self .max_points = max_points
7
+ self .min_points = min_points
8
+ print (" a8888b." )
9
+ print (" d888888b." )
10
+ print (' 8P"YP"Y88' )
11
+ print (" 8|o||o|88" )
12
+ print (" 8' .88" )
13
+ print (" 8`._.' Y8." )
14
+ print (" d/ `8b." )
15
+ print (" dP . Y8b.\n " )
16
+ print ("Welcome to the Linux-Finder: \n This Program helps you find the right Distro for you! \n \n " )
6
17
18
+ """Please only insert questions with this scheme for design reasons:
19
+ Gui[1] or Bash?[2]
20
+ note that only the first 3 Questions will have special beginnings."""
21
+ anw = 0
22
+ for i in range (len (self .questions )):
7
23
if i == 0 :
8
24
print ("First Question:" )
9
25
elif i == 1 :
@@ -13,6 +29,17 @@ def __init__(self, questions):
13
29
else :
14
30
print (i )
15
31
print (" Question" )
32
+ print (self .questions [i ], "\n " )
33
+ anw += int (input ())
34
+ if anw > min_points [i ]:
35
+ print ("Pleas follow the instrucktion in the question!" )
36
+ sys .exit (0 )
37
+ elif anw > max_points [i ]:
38
+ print ("Pleas follow the instrucktion in the question!" )
39
+ sys .exit (0 )
40
+ if i < len (self .questions ):
41
+ print (""" .-.\n .-'``( )\n ,`\ \ `-`.\n / \ '``-. ` \n .-. , `___: \n ( ) : ___ \n `-` ` , :\n \ / ,..-` ,\n `./ / .-.`\n `-..-( )\n `-`""" )
42
+ print ("Ubuntu seems a good choice." )
43
+ elif i == len (self .questions ):
16
44
17
- print (questions [i ] , "\n " )
18
- int (input ())
45
+ print ("Manjaro seemes good here." )
0 commit comments