AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Drawboard pro flatten10/21/2023 And you think you have a 2D array, which is why you're confused by your code not working. If you had a 2D array (a list of lists of numbers), it would make sense. At the end of it, you still have just a plain old flat list.Īnd trying to zip(*…) to transpose a 1D array (a list of numbers) makes no sense. All it does is print out a 2D array representation of draw, not changing the values at all. Your root problem seems to be that you think your drawBoard function is converting draw from a 1D array to a 2D array.
0 Comments
Read More
Leave a Reply. |