realbasic-games
[Top] [All Lists]

Re: Advice Wanted for Sudoku Analyzer

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Advice Wanted for Sudoku Analyzer
From: Brian Rathbone <brianrathbone at bellsouth dot net>
Date: Sun, 20 Nov 2005 14:28:55 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <20051119180036 dot 0CD67EB3AB6 at lists dot realsoftware dot com> <33cbfa100511191831h1812c21kc8c8bc2d33b89002 at mail dot gmail dot com> <4380101E dot 7070307 at ix dot netcom dot com> <438066E8 dot 3070706 at optonline dot net> <43807639 dot 4060002 at ix dot netcom dot com>
I have a question, however. Whatever gets printed, I assume, stays printed unless erased. If there is already a "5" at a particular location and I then print an "8" at that location, the result, I think, would be an "8" printed on top of the "5" already there, making a mess, right? (After all, it's a piece of the canvas, not an EditField.) What would be a good way to _erase_ whatever number may already be written in a square at a particular location?

I think you will want to have a background image or some algorithm to produce the playing board, and then draw the appropriate numbers, perhaps from an array or dictionary during the paint event.

A good example of a game that does similar things is the Bejeweled example that came with the exampleprojects download. Mars did a great job of showing how to develop a canvas based game.

hth,

Brian
_______________________________________________
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>