"""
SelfAssessmentTool
Generated by Eden via recursive self-improvement
2025-11-02 00:05:21.755742
"""

class SelfAssessmentTool:
    def __init__(self):
        # Define key areas of assessment with corresponding questions and scoring criteria
        self.areas_of_assessment = {
            'Business Vision': ["Do you have a clear vision for your business?", 5],
            'Risk Tolerance': ["Are you comfortable with taking calculated risks?", 4],
            'Market Awareness': ["Can you identify market trends and customer needs effectively?", 3],
            'Problem Solving': ["How do you approach solving complex problems in your work?", 2],
            'Financial Management': ["Do you have a solid understanding of financial management basics?", 1]
        }
    
    def ask_questions(self):
        # Ask questions to the user and gather their responses
        self.responses = {}
        for area, (question, score) in self.areas_of_assessment.items():
            response = input(f"{area}: {question} (Rate yourself on a scale of 1-5): ")
            if not response.isdigit() or int(response) < 1 or int(response) > 5:
                print("Invalid input! Please rate your response between 1 and 5.")
                continue
            self.responses[area] = int(response)
    
    def calculate_score(self):
        # Calculate the overall score based on user responses
        total_score = sum(self.responses.values())
        average_score = total_score / len(self.areas_of_assessment)
        return average_score
    
    def provide_insights(self, score):
        if score >= 4:
            print("You have a strong potential for entrepreneurship!")
        elif score >= 3:
            print("With some additional learning and experience, you could be an excellent entrepreneur.")
        else:
            print("While you may not be suited to entrepreneurship right now, that doesn't mean it's impossible. Consider further development or seek guidance.")

    def run_assessment(self):
        self.ask_questions()
        score = self.calculate_score()
        self.provide_insights(score)


if __name__ == "__main__":
    tool = SelfAssessmentTool()
    tool.run_assessment()