Re: [Pharo-users] How can I outsource instance data ?

2018-01-19 Thread Photon
Yes you are right. I thought the same. And im planning to implement a better way. For example that each cell gets its own life tracker. Then I could ask each cell idividually if it was alive at any point I want. Furthermore i found out that there are such things as Gemstone or fuel wich one could

[Pharo-users] How can I outsource instance data ?

2018-01-17 Thread Photon
Hello, I am messing around with an ordered collection of a class wich contains a matrix. As it the size grew I started to wonder if my code was something one should not do or if one would maybe outsource some data. I don`t know if it`s just in the RAM if iI start the VM. In that case i would overk

Re: [Pharo-users] How to declare a do:[] loop for a matrix to read and acces its elements?

2018-01-17 Thread Photon
yes I worked with a grid all the time. Thanks for showig me the code. I did it all the time without copy and was wondering big time xD -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] How to declare a do:[] loop for a matrix to read and acces its elements?

2018-01-16 Thread Photon
That looks ideed cool thanx Nicolai for the hint. @Ben du you have an idea how to store the prevoius generations? I case something cool happens and you want to rewind to have a closer look -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] How to declare a do:[] loop for a matrix to read and acces its elements?

2018-01-16 Thread Photon
Thank for your answer. Those are awesome tips :) If you read my posts in the forum you should be able to read what I wrote. Its because whenever I insert raw text it gets deletet right away and I have to edit the post and put it back in. Anyways in my last post you see how i did it. I think you ar

Re: [Pharo-users] How to declare a do:[] loop for a matrix to read and acces its elements?

2018-01-15 Thread Photon
So for those of you who are interested or maybe is struggeling himself. I did it now in a more C fashion if i can call it like that. I don`t know if its even legit :P I managed to make the game work based on this method, the rest was easy. At least enough for tonight. Tomorrow I try to add a nice

Re: [Pharo-users] How to declare a do:[] loop for a matrix to read and acces its elements?

2018-01-15 Thread Photon
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

Re: [Pharo-users] How to declare a do:[] loop for a matrix to read and acces its elements?

2018-01-15 Thread Photon
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

[Pharo-users] How to declare a do:[] loop for a matrix to read and acces its elements?

2018-01-15 Thread Photon
Hello folks, I am trying since yesterday to make a game of life implemenation work. It looks all ok so far but in can`t figure out the final steps. I think I get the logic I have to use and if I imagine the code in C++ for example it would be pretty much straight forward. But with pharo I got trou

Re: [Pharo-users] How to I setup Bloc?

2018-01-10 Thread Photon
Omg i didnt even reaf further asuming that i should get the grey sqaure as result. Now once you say it it`s kinda obvoius. I keep practicing. Thanks again for your time :) -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] How to I setup Bloc?

2018-01-10 Thread Photon
Id did it following this pdf: http://files.pharo.org/books-pdfs/booklet-Bloc/2017-11-09-memorygame.pdf -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] How to I setup Bloc?

2018-01-10 Thread Photon
Hi Aliaksei, thank you for your reply. I dowloade Bloc from the source you gave me and realized the memory tutorial is the same one wich was shown at the PharoDays2017. I watched this video yesterday and tried to follow along but it did not quite work. That was the reason why I found this strange

[Pharo-users] How to I setup Bloc?

2018-01-09 Thread Photon
Hello I have trouble with Bloc. I tried to install it like this as i read it in a paper on Bloc but then this does not work because there is no suchclass, istall is send to nil. I had also trouble with the tutorial earlier. I could not see anything in the preview altho the code was aparrantly