realbasic-nug
[Top] [All Lists]

Re: Puzzle Creation

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Puzzle Creation
From: Troy Rollins <troy at rpsystems dot net>
Date: Wed, 31 Aug 2005 18:26:32 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <ea26a3e90508311454280b8ebb at mail dot gmail dot com> <E6126900-37CA-4377-8A43-CB2C1D38E199 at haranbanjo dot com> <ea26a3e905083115142c9c447d at mail dot gmail dot com>

On Aug 31, 2005, at 6:14 PM, Tommy Single wrote:

Also, I want to add a solve feature that will solve the puzzle if you get stuck. And last but not least, I want to provide a hint to the user when
they press a button. How do I do this?

You need to consider the entire thing in reverse. In order to generate the puzzle, you generate it completed, with the solution. Then you remove cells before you display it to the player.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>