开发者

Python Gui: Which framework would be the best to display arrays

I was wondering which gui library would be appropriate to display a maze (a NxN array) and being able开发者_开发技巧 to fill each cell with a colour to represent states of that cell. I will also be generating a path from one part of the maze to another, and would like to display such path.

I need to choose a Gui framework for this. Any suggestions?


pygame is a nice library for making games but could also be useful here. You can start simple by just drawing squares. Later you can change the code to use sprites if you want to make it more visually appealing.

Check out some of the examples of maze games written using pygame.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜