Game and source code of "guess number" on Windows Mobile

Source: Internet
Author: User

Go to the interface picture first:

 

Game rules:

1. At the beginning of the game, the computer randomly generates a four-digit number that does not repeat.
2. Enter the number you guessed in the box and press ENTER or OK to submit the information.
3. The computer compares the number you submitted with the number it automatically generated. The result is displayed as "* a * B ". A indicates that the position is correct. B indicates that the number is correct but the position is incorrect. For example, "2a2b" indicates that you have two numbers in the correct position and the value is correct. In addition, you still guessed two numbers, but the location is incorrect.
4. You have a total of 8 chances. If the result is "4a0b" within 10 times, the game is successful. If you haven't guessed that the game has failed for eight times.

Game download andSource code:

SourceCode(Vs2008c #) http://files.cnblogs.com/luckeryin/Bingle.rar
GamesProgram: Http://files.cnblogs.com/luckeryin/Bingle_Source.rar

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.