import pygame as pg
width = 350
background_color = (255,255,255)
def main():
pg.init()
window = pg.display.set_mode((width,width))
pg.display.set_caption("Wumpus World")
window.fill(background_color)
for i in range(0,3):
pg.draw.line(window , (0,0,0) , (90+90*i,0),(90+90*i,400),2)
pg.draw.line(window, (0, 0, 0), (0,90+90*i), (400,90+90*i), 2)
pg.display.update()
while True:
for event in pg.event.get():
if event.type == pg.QUIT:
pg.quit()
return
main()
The above code I have written to draw 4x4 grid for wumpus world board only. I am not getting where and how to put text of agent,start,stench,pit etc on the specific grids