Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 85c2e7f

Browse files
finally got the first alpha
1 parent 4b2b4ec commit 85c2e7f

File tree

2 files changed

+39
-21
lines changed

2 files changed

+39
-21
lines changed

engine.py

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1+
import sys
12
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."""
45
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: \nThis Program helps you find the right Distro for you! \n\n")
617

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)):
723
if i == 0:
824
print("First Question:")
925
elif i == 1:
@@ -13,6 +29,17 @@ def __init__(self, questions):
1329
else:
1430
print(i)
1531
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):
1644

17-
print(questions[i] , "\n")
18-
int(input())
45+
print("Manjaro seemes good here.")

main.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
import engine
1+
from engine import engine
22

33
#Please follow the sceam: rather Gui[1] or Bash?[2]
4-
questions = ["Das ist eine Frage:", "Das ist noch eine Frage"]
5-
6-
74

5+
questions = ["Das ist eine Frage: bitte nur bis 1 und 5 ", "Das ist noch eine Fragenur bis null und 2"]
6+
min_points = [1, 0]
7+
max_points = [5, 2]
88
# first Version only wit a CMD overlay
9-
print(" a8888b.")
10-
print(" d888888b.")
11-
print(' 8P"YP"Y88')
12-
print(" 8|o||o|88")
13-
print(" 8' .88")
14-
print(" 8`._.' Y8.")
15-
print(" d/ `8b.")
16-
print(" dP . Y8b.\n")
17-
print("Welcome to the Linux-Finder: \nThis Program helps you find the right Distro for you! \n\n")
18-
19-
20-
engine.engine(questions)
219

10+
#try out the help
11+
#help(engine)
2212

13+
engine(questions, min_points)

0 commit comments

Comments
 (0)