Number Guess

Number Guess Web Application

Several months ago, I wrote a simple game called Number Guess, and its presentation was Swing in the past. Recently, I am learning JSF, as a result, I applied JSF to make it as a web application.

This game asks player to guess a 4-digit number (without reduplicate digits) which is auto-generated by system. The player inputs a 4-digit number and the system will check if the attempt is correct, the system will display ?A ?B to the player if the attempt is not correct.

The two "?" are numbers where "?A" indicates that the digits in the attempt has ? digits that are existed in the answer and the locations are also correct; the "?B" otherwise indicates that the digits in the attempt has ? digits are existed in the answer but the locations are not matched.

For example, assume that the Answer is "3850", and the player’s attempt is "1234", then the result will be 0A 1B.