This site requires JavaScript, please enable it in your browser!
Greenfoot back

danpost's Comments

Back to danpost's profile

I think the problem is due to the code to change each cell is in the act method which will not work properly there. The way it needs to work is that all cells need to be calculated to determine the next state for all the cells before changing any of them. And then, changing all of them at once. In other words, the press of the spacebar should be in the sub-class of world, and each time it is found to be pressed iterate through all the cells to figure out there next states, and then iterate though all the cells, changing to the states figured.
@Cocky, I believe 'nicht schlecht', translated into English, is 'Not bad'. Am I right?
OK, got enough users to double check 'column shifting'. Seems to be doing fine!
Alright, people. I need one more new user to be able to double check 'column shifting'. Plus, you all were asking for something with this functionality, yet, it has not been used for anything that requires privacy or for much else besides. I am glad to say that it has been working properly with no major concerns.
@Zamoht, you could start a discussion on this, and I will try to make it easier to understand.
That was my thought, exactly. Just using the Strings, you can save 250 levels of scores up to 65'535! That is exactly the kind of thing I had in mind for one of my projects.
That was my thought, exactly. Just using the Strings, you can save 250 levels of scores up to 65'535! That is exactly the kind of thing I had in mind for one of my projects.
No. That cannot be right. Not enough room to do it that way (not even without the seperator). You must be converting the score somehow. But then, why does it only save values up to 999 and not higher? There are 10 to 12 levels that took more than 999 moves to complete, yet the saved score is set to 999.
@royalfool, Thanks. But I have a question: How do you store all the scores? I am assuming that you are concatenating them as a three digit number set to a string, with a seperator. Am I right? @Morran, There are many levels that can be improved on (that can be completed in less moves) which I have yet to conquer.