Mail : 2022141520188@stu.scu.edu.cn
- Anomaly Detection:
-
If the player chooses the wrong number for the opening, they will be asked to re-enter it
-
If the player enters fewer than 5 characters, a new entry will be requested
-
If a player enters a word with non-lowercase letters, such as capital letters and other characters, they are asked to re-enter it
- Debug Mode:
-
To help developers understand the performance of the program more quickly, there is a developer mode within the program -0 is Normal Mode and 1 is Debug Mode
-
Debug Mode will show the correct string the player will guess
- Method of implementation of the entire program
- Load in Random puzzles:
The program is generated as a random number, which is then multiplied by 5 to obtain the position of the first letter of the randomized word, from which the correct word is then stored in RAM using a register, which will be loaded into the $s# register during the game.
- Wordle Judgment Method
Ⅰ. Judge the abnormal input.
Ⅱ. Determine how many plays a player has left
Ⅲ. The first loop determines if it's completely correct,If you're absolutely right, you win outright.
Ⅳ. The second loop judges each input individually, first determining if it is of exactly the right type, and if not then determining if it is inside the character