[Tutor] Improving My Simple Game Code for Speed, Memory and Learning
WolfRage
wolfrage8765 at gmail.com
Sat Jan 3 22:22:19 CET 2015
On 01/03/2015 06:58 AM, Dave Angel wrote:
> To transpose a grid, you want to use the zip() function.
> self.transposed_grid = zip(*self.grid)
I see this gives me a list that is the column. Thus it solves the column
iteration problem, because now I can feed it to my checking and
elimination functions that take a slice.
Thanks!
Implementing now.
More information about the Tutor
mailing list