Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 3.1

COLUMN

From Scratch: Puzzles & Solutions

Issue: 3.1 (September/October 2004)
Author: William Leshner
Author Bio: William Leshner has been programming for twenty-five years and programming Macs for fifteen. He has spent a good deal of the last several years building REALbasic applications, utilities, and plugins, including KidzMail, KidzLog, and SQLitePluginPro.
Article Description: No description available.
Article Length (in bytes): 11,786
Starting Page Number: 40
Article Number: 3119
Resource File(s):

Download Icon 3119.zip Updated: 2013-03-10 14:35:02

Related Link(s): None

Excerpt of article text...

Introduction

This is the fourth of six articles in which we are building a puzzle game called TanGram. As you may recall from the previous articles, Tangram is a game where players drag around polygonal shapes and arrange them to make pictures. As a challenge, players are presented with pre-created pictures that they must recreate, and players can also save their own pictures to challenge their friends.

In this article we will work on the puzzles and solutions features of TanGram. The idea is to present puzzles to the player in a small area next to the main playing area. A puzzle is a small, black colored version of a TanGram picture in which the individual pieces are indistinguishable. The player is supposed to recreate the puzzle in the main playing area using the large blue pieces. A "Show Answer" button is provided to reveal the solution (by outlining each piece of the picture). A "Next Puzzle" button shows the next puzzle in the series of puzzles. Let's get started.

The Plan

...End of Excerpt. Please purchase the magazine to read the full article.