This is a simple Mastermind solver using Knuth's solution.
What were you expecting?
Mastermind solver