Mastermind

Guess the pattern.
Four characters.
Numbers 1 through 6.

Result order != input order
x = Correct number and location
o = Correct number, wrong location