"""
SelfAssessmentCapability
Generated by Eden via recursive self-improvement
2025-11-02 06:00:25.064862
"""

class SelfAssessmentCapability:

    def __init__(self):
        self.questions = [
            "Do you like to take risks?",
            "Do you enjoy working with numbers?",
            "Have you started any business ventures before?",
            "Are you willing to work hard and long hours for a new idea?",
            "Do you have experience in sales or marketing?"
        ]
        self.response_scores = {
            1: "Not at all",
            2: "A little bit",
            3: "Moderately",
            4: "Quite a lot",
            5: "Completely"
        }
    
    def ask_questions(self):
        responses = {}
        for q in self.questions:
            response = int(input(f"Please rate the following statement on a scale of 1 to 5:\n{q} (1 - Not at all, 5 - Completely): "))
            if response not in range(1, 6):
                raise ValueError("Invalid input. Please enter a number between 1 and 5.")
            responses[q] = self.response_scores[response]
        return responses
    
    def analyze_assessment(self, responses):
        scores = {
            "Risk Tolerance": 0,
            "Numerical Skills": 0,
            "Previous Experience": 0,
            "Work Ethic": 0,
            "Sales and Marketing Skills": 0
        }
        
        for question, response in responses.items():
            if 'take risks' in question:
                scores["Risk Tolerance"] += 2 * self.response_scores[response]
            elif 'numbers' in question:
                scores["Numerical Skills"] += 2 * int(response.split()[1])
            elif 'started any business ventures before' in question:
                scores["Previous Experience"] += 3 * (5 - int(response.split()[-1]))
            elif 'work hard and long hours' in question:
                scores["Work Ethic"] += 2 * self.response_scores[response]
            elif 'sales or marketing' in question:
                scores["Sales and Marketing Skills"] += 2 * int(response.split()[3])
        
        total_score = sum(scores.values())
        print(f"Your overall entrepreneurial potential score: {total_score}")
    
    def run_assessment(self):
        responses = self.ask_questions()
        self.analyze_assessment(responses)

# Example usage
if __name__ == "__main__":
    capability = SelfAssessmentCapability()
    capability.run_assessment()