How to draw Grid World using Python
I want to draw a Grid World (similar to a table), where cell开发者_如何学Cs may contain robots or obstacles. A dot/arrow would do to represent the robot and colouring the cells in black for examples could represent the obstacles.
I am not looking for anything complicated, just a simple python library that would help me do this. Any suggestions?
tkinter has a canvas widget that is pretty easy to work with. It has primitives for lines and filled polygons and circles and so on. And with the event loop its pretty easy to do simple animations.
精彩评论