samedi 10 décembre 2022

(this is a game) there should be 4 random digits, only 8 attempts are allowed

Task 1: Set up a Python project by following the instructions and routine practiced in all tutorial exercises. Task 2: Implement a human-computer interaction mode, where the following will be possible:

  1. Visualize the user interface as depicted by figure 2.
  2. The user should be in a position to mark interactively the start and end of the game by selecting start and end options from the menu.
  3. The system should be able to generate a 4-digit random number where each digit is in the range of 1-6.
  4. The user should be able to enter a 4-digit number where each digit is in the range of 1-6.
  5. The system should validate the 4-digit number entered by the user and should NOT accept any number where the number does not fall into criteria specified in point 4. and should give an appropriate error message if the criteria do not match.
  6. The user should be able to guess a maximum of 8 guesses and should be able to terminate the game without going into 8 th guess (if he/she wishes) by entering ‘0000’ as the guess. Task 3: Design and implement your “GameInt” game as specified by the problem specification. Task 4: A brief report (less than 10 A4 size pages) which gives the following. • Table of contents • Introduction about the problem • Flowchart or pseudocodes which explains the program o This can be parts of the programs if you implement modular coding • Actual python codes for the program (final solution) • Any other vital information you wish to present (e.g any assumptions you made.) • Screenshots of the working program (Which includes positive and negative results) • Conclusion Task 5: Demonstrate and defend the implemented solution at viva by a) Visualizing the menu as of figure 1. b) Marking the start and end of the program. c) Demonstrate the points specified in Task 2. d) Justifying the results.

I want to limit the attempts only for 8 times




Aucun commentaire:

Enregistrer un commentaire