when I call the countNeighbours method i get an error: the block wants two
arguments but I pass only one.
This is probally because i want to pass x y but only really pass x wich ends
up being a cell and not the index.

I still have trouble thinking it trough. The indicieDo: method seems to make
the matrix bigger?! I  don`t quite understand it.

There must be an easy way to to figure out if the suroundings are alive or
not. I mean its all there what I need and in my mind its so easy to discribe
it with normal words. But to tell the machine witth syntax is another thing
really :/

what if i selected only one element with do:[] and let its tell me its
idices. I store them in a temp object and then I check outside the block the
neighbours and add to the counter. Once this is done I repeat as many times
as their elements in the matrix?

Greetings






--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to