AppleScript Programming/Sample Programs/Guess The Character

Guess The Character
This is a small game that you can make with AppleScript, and then you must play it with a friend. You must type in a character and then your friend must guess. If your friend is right, he/she will win a point. You can type in the names, choose how many levels will be played and choose any character, but only one. It includes the if statement, the repeat function and many variables and dialogs. It's long, but the whole code is necessary for playing the game. Copy this code to the Script Editor: