VISUALLIZE IT AS IF BURNING THROUGH, SLOWLY [message #34576] |
Tue, 01 April 2003 20:28  |
MC
Messages: 50 Registered: September 1996
|
Member |
|
|
a=[[3,3,1,1,5],[2,1,1,4,5],[3,5,1,1,2]]
The burn can only go where there are 1's. Allowed to proceed to the next
cell as long as any of its 8 neighbours are connected by 1's.
Start the burn at [3,2].
The front is allowed to go up and to the side, but not down.
How can I simulate the movement of the front?
Thanks,
MC
|
|
|
Re: VISUALLIZE IT AS IF BURNING THROUGH, SLOWLY [message #34696 is a reply to message #34576] |
Sun, 06 April 2003 18:21  |
MC
Messages: 50 Registered: September 1996
|
Member |
|
|
I am not as good in programming as I wanted to be.
Could you please explain? I don't understand.
Thanks,
MC
"Marc Schellens" <m_schellens@hotmail.com> wrote in message
news:3E8C0470.3080604@hotmail.com...
>> a=[[3,3,1,1,5],[2,1,1,4,5],[3,5,1,1,2]]
>>
>> The burn can only go where there are 1's. Allowed to proceed to the next
>> cell as long as any of its 8 neighbours are connected by 1's.
>>
>> Start the burn at [3,2].
>>
>> The front is allowed to go up and to the side, but not down.
>>
>> How can I simulate the movement of the front?
>>
>> Thanks,
>> MC
>
> Just set the burn to [3,1]
> and to move the front do a[*,1]=a[*,2]
> or a[1,*]=a[0,*]
> cheers,
> :-) marc
>
|
|
|
Re: VISUALLIZE IT AS IF BURNING THROUGH, SLOWLY [message #34714 is a reply to message #34576] |
Thu, 03 April 2003 01:52  |
marc schellens[1]
Messages: 183 Registered: January 2000
|
Senior Member |
|
|
> a=[[3,3,1,1,5],[2,1,1,4,5],[3,5,1,1,2]]
>
> The burn can only go where there are 1's. Allowed to proceed to the next
> cell as long as any of its 8 neighbours are connected by 1's.
>
> Start the burn at [3,2].
>
> The front is allowed to go up and to the side, but not down.
>
> How can I simulate the movement of the front?
>
> Thanks,
> MC
Just set the burn to [3,1]
and to move the front do a[*,1]=a[*,2]
or a[1,*]=a[0,*]
cheers,
:-) marc
|
|
|