2022-04-20 09:14:16 +02:00
|
|
|
import acts as acts
|
|
|
|
|
|
|
|
welcome = 'Witaj!'
|
|
|
|
prompt = 'Zapytaj mnie o moje imię.'
|
|
|
|
resp = 'Nazywam się Dia.'
|
|
|
|
unknown = "Nie rozumiem."
|
|
|
|
|
2022-04-19 23:22:44 +02:00
|
|
|
def generator_jezyka_nautalnego(frames):
|
2022-04-20 09:14:16 +02:00
|
|
|
for frame in frames:
|
|
|
|
if frame == acts.hello_act:
|
|
|
|
print(welcome, end=" ")
|
|
|
|
elif frame == acts.name_response_act:
|
|
|
|
print(resp, end=" ")
|
|
|
|
elif frame == acts.help_response_act:
|
|
|
|
print(prompt, end=" ")
|
|
|
|
else:
|
|
|
|
print(unknown, end=" ")
|
|
|
|
print()
|