I am not really sure of a better way but if your looking for a way to make
your code cleaner or more efficient
you can try Numpy - http://numpy.scipy.org/
On Tue, Mar 2, 2010 at 4:54 PM, David Eccles (gringer) wrote:
> I've managed to drum up some code to obtain a list containing joined
> diagon
On 3/2/2010 2:54 PM David Eccles (gringer) said...
I've managed to drum up some code to obtain a list containing joined diagonal
elements of a matrix (I'm making a word finder generator), but am wondering if
there's any better way to do this:
This works. Lots of other ways would work too. Wha
I've managed to drum up some code to obtain a list containing joined diagonal
elements of a matrix (I'm making a word finder generator), but am wondering if
there's any better way to do this:
# setup so code snippet works properly
sizeW = 4
sizeH = 3
puzzleLayout = ['spam'] * (sizeW * sizeH)
# St