Mastermind

Crack the 4-digit code in the least number of attempts within 1 minute. Duplicate colors are allowed. A black peg means a correct color in the correct position, and a grey peg means a correct color in the wrong position. The order of the pegs is not significant.