diff --git a/Abenteuer.py b/Abenteuer.py index 4a7822b..c8b8834 100644 --- a/Abenteuer.py +++ b/Abenteuer.py @@ -1,12 +1,15 @@ import Texte as t import Toolbox as tb -import BetterUtils as u +import FunktionenUndKlassen as fk print(t.welcome_message) # setup Characters -user = u.User() -interest = u.RomanticInterest(user.preference, u.generateAge(user.age)) +user = fk.User() +if user.age < 14: + print(t.too_young) + exit(1) +interest = fk.RomanticInterest(user.preference, fk.generateAge(user.age)) # meet interest t.meet_cute() @@ -18,7 +21,7 @@ tb.pressForward() # First choice print(t.ask_what_you_do) -action = u.wähleAusListe([ +action = fk.wähleAusListe([ t.action_throw_book, t.action_introduce_self, t.action_ask_age, @@ -31,7 +34,7 @@ interest.react_to(action) ## Second choice print(t.ask_what_you_do) -action = u.wähleAusListe([ +action = fk.wähleAusListe([ t.action_dance, t.action_ask_for_number, t.action_tell_compliment, @@ -42,7 +45,7 @@ interest.react_to(action) # Third Choice print(t.ask_what_you_do) -action = u.wähleAusListe([ +action = fk.wähleAusListe([ t.action_invite_to_date, t.action_hug_out_of_blue, t.action_send_dickpic, @@ -52,7 +55,7 @@ user.do_action(action) tb.pressForward() interest.react_to(action) -u.showStats(interest) +fk.showStats(interest) if interest.is_won(): print(t.won_message) else: diff --git a/BetterUtils.py b/FunktionenUndKlassen.py similarity index 100% rename from BetterUtils.py rename to FunktionenUndKlassen.py diff --git a/Texte.py b/Texte.py index f58349a..e0a54fb 100644 --- a/Texte.py +++ b/Texte.py @@ -9,6 +9,7 @@ import time welcome_message = "Willkommen in Deloulou-World!!\nDie virtuelle Welt der Wahnhaften." won_message = "Du hast es geschafft" loose_message = "Du hast leider verloren" +too_young = "Du bist zu jung. Das Mindestalter ist 14 Jahre!" ask_name = "Was ist dein Name?" ask_age = "Wie alt bist du?" @@ -102,3 +103,4 @@ names = { err_not_a_number = "Bitte eine nummer eingeben." +test = "hello world" \ No newline at end of file diff --git a/lib64 b/lib64 deleted file mode 120000 index 7951405..0000000 --- a/lib64 +++ /dev/null @@ -1 +0,0 @@ -lib \ No newline at end of file