Skip to content
Snippets Groups Projects
Commit 36f42a53 authored by tuhe's avatar tuhe
Browse files

Midterm 2023a

parent ed2750eb
Branches
No related tags found
No related merge requests found
No preview for this file type
......@@ -76,6 +76,11 @@ async def _webassembly_interactive(env, agent, autoplay=False):
from pygame import gfxdraw
import numpy as np
if not hasattr(agent, 'reset'):
from irlc.lectures.lec10.utils import agent_reset
agent.reset = lambda self: agent_reset(self)
def aapolygon(surface, points, color):
pygame.draw.polygon(surface, color, points)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment