All right, it is time to turn your attention back to this chapter’s game project, the AppleScript Number Guessing game. This game challenges the player to guess a randomly generated number in the range of 1 to 100 in as few guesses as possible. To assist the player, the game provides her with a hint at the end of each turn, which lets her know if the answer is too high or too low.
The AppleScript Number Guessing game will be created in 10 steps, as outlined here:
Create a new AppleScript and save it with a name of Number Guess.
Document the script and its purpose.
Declare the game’s global variables.
Generate the game’s first random number.
Develop the game’s controlling ...