The reset_questions function should be moved in the main_loop function in order to reset the correct questions. Also a new parameter should be given to this function (question_obj_vector).
The approve_ending? function still uses the Answers from the park topic and because they are now situated in park_data.clj it will crash the chatbot. To solve this, a function (give_answer) should be created for each topic to give the answer with the correct sentences for the given topic.
In main_loop while assigning question_obj because it assigns itself the data/question_objects which no longer exists. In order to solve this issue, the assigned variable should be (rand-nth question_obj_vector).
The find_topic function do not behave correctly, because it searches if a word is contained inside a vector instead of a set. Solved by adding (set ') in front of the vector of words.
The reset_questions function crashes and doesn't reset the question objects when the user agrees to continue the conversation or when the user enters a word to quit the chatbot in the middle of the conversation. Solved by adding question_obj_vector parameter in approved_ending? functions.
To do:
[x] Solve the reset_question problem from the main_loop
[x] Solve the approve_ending? function
[x] Solve the question_obj assignment problem
[x] Solve the find_topic Issue
[x] Solve the reset_question problem to reset question objects
After merging #29 several issues appeared.
To do: