Re: [Tutor] Improving My Simple Game Code for Speed, Memory and Learning

2015-01-11 Thread WolfRage
Ok, now the code works as expected to drop the non zero values. But I think there exist an error in the naming and display of the col and row variables at least from with in the GameTile() class, looking into that now. All Suggestions Welcome! Thank You All. import random class GameTile():

Re: [Tutor] Improving My Simple Game Code for Speed, Memory and Learning

2015-01-11 Thread WolfRage
I had an issue in my logic and again my named variables provided for confusion, so I had to add some comments to clarify. I got much closer by editing my code like this: def drop_floating_nodes0(self): i = self.rows # first_zero_row serves as memory for how far to drop non-zero

Re: [Tutor] Improving My Simple Game Code for Speed, Memory and Learning

2015-01-11 Thread WolfRage
On 01/05/2015 06:21 PM, Danny Yoo wrote: SNIP if total in (17, 21, 28, ...): Implemented, thanks. SNIP The other comment I'd make is to start thinking about how you'd _test_ your program automatically. SNIP You are right, I should. But I am fighting with myself on this topic. I have been