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 Tic-Tac-Toe Game

This chapter’s game project is the Tic-Tac-Toe game. Instead of creating the game as an AppleScript application, you will use AppleScript Studio to build a desktop application, which will consist of a graphical user interface, allowing the user to start the application directly from the desktop and to interact with it using the mouse.

Figure 10.1 shows how the application will look when first started. As you can see, it consists of a game board made up of nine squares—representing a traditional Tic-Tac-Toe game board—and a button labeled Play.

Figure 10.1. To begin playing the game, the player must click on the Play button.

Once the Play button has been clicked, the dialog window shown in Figure 10.2 ...

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