예제 #1
0
파일: board.py 프로젝트: cjbathras/dots
 def capture_edge(self, edge: Edge) -> None:
     """Capture the specified edge."""
     self._highlighted_edge = None
     edge.captured = True
     pg.draw.rect(self._screen, EDGE_COLOR_CAPTURED, edge)
     pg.display.update(edge)