buf = sock.recv(1024)
if len(buf) == 0:
pygame.quit()
sys.exit()
pygame.event.set_allowed(MOUSEBUTTONUP)
logger("client.txt","recv()")
i,j,x,y = tuple(buf.split(' '))
i,j,x,y = int(i),int(j),int(x),int(y)
cross[i][j] = BLACKPIECE
pygame.draw.circle(DISPLAYSURF,BLACK, (x,y), 10)
pygame.display.update()
if len(buf) == 0:
pygame.quit()
sys.exit()
pygame.event.set_allowed(MOUSEBUTTONUP)
logger("client.txt","recv()")
i,j,x,y = tuple(buf.split(' '))
i,j,x,y = int(i),int(j),int(x),int(y)
cross[i][j] = BLACKPIECE
pygame.draw.circle(DISPLAYSURF,BLACK, (x,y), 10)
pygame.display.update()