The goal of the game is to correctly guess a four digit number generated by computer with the least amount of tries and in the least amount of time
For every trial that you make you are given two clues, dead and injured. Dead count is the number of digits that you guessed correctly and are in the correct position. Injured count is the number of digits that you guessed correctly but are in the wrong position.
For example, if the number is 1234 and you guessed 1356, you will get 1 dead and 1 injured. Since the dead number would be 1 and the injured number would be 3. The dead digit is 1 because 1 is in the correct position. The injured digit is 3 because 3 is in the wrong position.