"""
SelfAssessmentTool
Generated by Eden via recursive self-improvement
2025-11-02 08:55:41.090622
"""

class SelfAssessmentTool:
    def __init__(self):
        # Define the assessment questions and categories
        self.questions = [
            {"question": "Do you have a clear understanding of your target market?", "category": "Market Understanding"},
            {"question": "Can you articulate your business's unique value proposition?", "category": "Value Proposition"},
            {"question": "Are you familiar with the latest trends in your industry?", "category": "Industry Knowledge"},
            {"question": "Do you have a solid financial plan for your business?", "category": "Financial Planning"},
            {"question": "Can you effectively communicate and network with potential clients or partners?", "category": "Networking Skills"}
        ]
        
        # Initialize scores
        self.scores = {q["category"]: 0 for q in self.questions}

    def ask_question(self, question):
        answer = input(question + " (yes/no): ")
        return answer.lower() == 'yes'

    def assess(self):
        print("Welcome to the Self-Assessment Tool!")
        
        # Loop through each question
        for q in self.questions:
            if self.ask_question(q["question"]):
                self.scores[q["category"]] += 1

        # Display the results
        for category, score in self.scores.items():
            print(f"{category}: {score} / 5")

    def summary(self):
        print("Summary of your entrepreneurial potential based on the assessment:")
        
        categories = list(self.scores.keys())
        min_score = min(self.scores.values())
        max_score = max(self.scores.values())

        for category in categories:
            score_percentage = (self.scores[category] / 5) * 100
            print(f"{category}: {score_percentage:.2f}% ({self.scores[category]} of 5)")

        # Provide feedback based on the scores
        if max_score < 3:
            print("Consider seeking additional training or advice in your weaker areas.")
        else:
            print("You have a strong foundation, but there is always room for improvement.")

# Example usage
tool = SelfAssessmentTool()
tool.assess()
tool.summary()