"""
SelfKnowledgeEvaluator
Generated by Eden via recursive self-improvement
2025-11-02 00:27:57.698924
"""

class SelfKnowledgeEvaluator:
    def __init__(self):
        self.questions = [
            "Do you have a clear business idea or vision?",
            "How confident are you in your ability to lead and manage others?",
            "Can you identify your strengths and weaknesses effectively?",
            "Are you willing to take calculated risks for the sake of growth?",
            "Do you possess strong problem-solving skills?",
            "How do you handle setbacks and failures?",
            "Can you adapt to changing market conditions quickly?",
            "Do you have a strong understanding of customer needs and preferences?",
            "Are you passionate about your business idea?",
            "Do you have experience in the industry or domain related to your business?"
        ]
        self.thresholds = [8, 7, 6, 5, 4, 3, 4, 6, 8, 5]
        self.score_map = {1: 'Very Low', 2: 'Low', 3: 'Medium-Low', 4: 'Medium', 5: 'High', 6: 'Medium-High', 7: 'High', 8: 'Very High'}

    def evaluate(self, responses):
        score = sum(responses[i] >= self.thresholds[i] for i in range(len(responses)))
        return f"Your entrepreneurial potential is {self.score_map[score]}."

    def ask_questions(self):
        answers = []
        print("Let's assess your entrepreneurial potential. Answer 1-8 based on the following questions:")
        for i, question in enumerate(self.questions):
            answer = int(input(f"{question} (1-8): "))
            if not 1 <= answer <= 8:
                raise ValueError(f"Invalid response: {answer}. Please choose a number between 1 and 8.")
            answers.append(answer)
        return answers

if __name__ == "__main__":
    evaluator = SelfKnowledgeEvaluator()
    responses = evaluator.ask_questions()
    print(evaluator.evaluate(responses))