generator init
This commit is contained in:
parent
44435f3fa6
commit
4c303d2e17
@ -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):
|
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()
|
||||||
|
@ -3,11 +3,6 @@ from re import S
|
|||||||
from acts import *
|
from acts import *
|
||||||
|
|
||||||
|
|
||||||
welcome = 'Witaj!'
|
|
||||||
prompt = 'Zapytaj mnie o moje imię.'
|
|
||||||
resp = 'Nazywam się Dia.'
|
|
||||||
|
|
||||||
|
|
||||||
def check_condition(state, conditions, type=all):
|
def check_condition(state, conditions, type=all):
|
||||||
if type(i in state for i in conditions):
|
if type(i in state for i in conditions):
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user