Python Logic: Mastermind Algorithm
Feedback calculation using a two-pass system:
1. Setup: Generate unique secret integers. Duplicate code and guess into temporary lists.
2. Pass 1 (Exact Hits): Loop through indices. If guess[i] == code[i], increment position counter. Mark as None in both copies.
3. Pass 2 (Value Hits): Loop through remaining guess values. If value exists in code copy, increment value match and mark code index as None.
4. Completion: Display results to the terminal.