"""
SelfKnowledgeEvaluator
Generated by Eden via recursive self-improvement
2025-11-01 22:33:45.871848
"""

class SelfKnowledgeEvaluator:
    def __init__(self):
        self.questions = [
            "How well do you understand your own emotions?",
            "Can you clearly describe your personal values and how they influence your decisions?",
            "Do you recognize the impact of your actions on others and yourself?",
            "Are you aware of your strengths and weaknesses in a professional context?",
            "Do you have a clear understanding of your long-term goals and how to achieve them?"
        ]
        self.score_scale = {"low": 1, "moderate": 3, "high": 5}

    def evaluate(self):
        scores = {}
        for question in self.questions:
            print(question)
            response = input("Enter 'low', 'moderate', or 'high': ")
            score = self.score_scale.get(response.lower(), "invalid")
            if score != "invalid":
                scores[question] = int(score)
            else:
                print(f"Invalid response: {response}. Please enter 'low', 'moderate', or 'high'.")
        return scores

    def display_report(self, scores):
        total_score = sum(scores.values())
        average_score = total_score / len(scores) if len(scores) > 0 else 0
        print(f"Self-Knowledge Evaluation Report:")
        for question, score in scores.items():
            print(f"{question}: {score}")
        print(f"\nAverage Score: {average_score:.2f}/15\n")
        if average_score < 4:
            print("Consider seeking professional guidance to improve self-awareness.")
        elif average_score < 7:
            print("You have a good understanding of yourself, but there is room for improvement.")
        else:
            print("You exhibit strong self-awareness and are likely making informed decisions.")

# Example usage
if __name__ == "__main__":
    evaluator = SelfKnowledgeEvaluator()
    scores = evaluator.evaluate()
    evaluator.display_report(scores)