Hi,
no i dont think its the same. Reading your story it sounds like every piece
has a set of neighbours, with a maximum of fours neighbours.
Taking your example:
Initially each piece group property is an empty array, but for a group
something like:

A B C
D
a.group = [a,b,c,d] and b.group = [a,b,c,d] and c.group = [a,b,c,d] etc

for :
ABCD
EF

a.group would be = [a,b,c,d,e,f]

You dont need to explicitly define a's neighbours, since its a grid, so you
know how to find it's direct neighbour if necessary.

greetz
Hans


On 7/28/06, Guntur N. Sarwohadi <[EMAIL PROTECTED]> wrote:

Hi Danny,

Thanks for the reply.. I'm not quite sure to what you mean, but doesn't it
sound similar to my current approach? Rather than using arrays, you
suggested objects. Please correct me if I'm wrong.

Cheers,
Guntur N. Sarwohadi
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to