make requirents compliant
This commit is contained in:
parent
8804a8a4a2
commit
c30fedce9f
17
Abenteuer.py
17
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:
|
||||
|
2
Texte.py
2
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"
|
Loading…
Reference in New Issue
Block a user