Karan
Karan

Reputation: 15104

How to draw Grid World using Python

I want to draw a Grid World (similar to a table), where cells 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?

Upvotes: 3

Views: 4007

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 385970

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.

Upvotes: 1

Related Questions