def GobangWin():
gw = GraphWin('AI Gobang', GRID_WIDTH*COLUMN, GRID_WIDTH*ROW)
gw.setBackground('gray')
for j in range(0, GRID_WIDTH*COLUMN+1, GRID_WIDTH):
l = Line(Point(j, 0), Point(j, GRID_WIDTH*COLUMN))
l.draw(gw)
for i in range(0, GRID_WIDTH*ROW+1, GRID_WIDTH):
l = Line(Point(0, i), Point(GRID_WIDTH*ROW, i))
l.draw(gw)
return gw
col =(255, 0, 0)
surf.fill((255, 255, 255))
pygame.gfxdraw.aacircle(surf, x, y, 30, col)
pygame.gfxdraw.filled_circle(surf, x, y, 30, col)
from graphics import
win = GraphWin('hehe', 666, 666)
win.getMouse()
win.close()
pt = Point(100, 100)
pt.draw(win)
cir = Circle(Point(200, 200), 75)
cir.draw(win)
cir.setOutline('red')
cir.setFill('yellow')
line = Line(Point(650, 100), Point(250, 100))
line.draw(win)
rect = Rectangle(Point(300, 300), Point(400, 400))
rect.setFil1('red')
rect.draw(win)
oval = Oval(Point(450, 450), Point(600, 600))
oval.setFill('red')
oval.draw(win)
message = Text(Point(win.getWidth()/2, 20),'Click anywhere to quit.')