generator init

This commit is contained in:
Jakub Adamski 2022-04-20 09:14:16 +02:00
parent 44435f3fa6
commit 4c303d2e17
2 changed files with 17 additions and 6 deletions

View File

@ -1,2 +1,18 @@
import acts as acts
welcome = 'Witaj!'
prompt = 'Zapytaj mnie o moje imię.'
resp = 'Nazywam się Dia.'
unknown = "Nie rozumiem."
def generator_jezyka_nautalnego(frames):
print(frames)
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()

View File

@ -3,11 +3,6 @@ from re import S
from acts import *
welcome = 'Witaj!'
prompt = 'Zapytaj mnie o moje imię.'
resp = 'Nazywam się Dia.'
def check_condition(state, conditions, type=all):
if type(i in state for i in conditions):
return True