开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜