You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part 1: Understanding the Code Structure (10 minutes)
Examine all provided files carefully
Understand the existing code structure and requirements
Identify where custom exceptions need to be implemented
Part 2: Implementing Custom Exceptions (20 minutes)
Complete the custom exceptions in custom_exceptions.py
Ensure exceptions are properly inherited from the Exception class
Add appropriate error messages
Part 3: Core Algorithm Implementation (40 minutes)
Implement the Mastermind game logic in assessment.py
Follow the skeleton structure provided in the comments
Ensure all functions raise appropriate custom exceptions
Implement proper input validation
Part 4: Writing Unit Tests (20 minutes)
Complete the test cases in test_assessment.py
Cover all possible scenarios including edge cases
Ensure tests validate both successful executions and exception cases
Requirements:
DO NOT modify the existing function signatures
You MUST use custom exceptions where specified
All tests in test_assessment.py must pass
Handle edge cases appropriately
Write clean, readable code with comments
Running the Tests:
# Run your tests
python test_assessment.py
# Run with verbose output
python test_assessment.py -v
# To get final results
run bash .scripts/test_script.bash