O'Reilly logo

AppleScript® Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Project Preview: The AppleScript Shell Game

This chapter’s game project is the AppleScript Shell game. This game is based on the traditional shell guessing game in which the player is challenged to guess under which of three shells a ball is being hidden. In this game, the player is given a $10 bank account with which to start the game. The game begins by displaying the dialog window shown in Figure 6.1.

Figure 6.1. The player can specify how much money she wishes to gamble.

The first step in playing the game is to determine how much to bet. This is done by clicking on one of the dialog window’s buttons. Once a bet has been made, the player ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required