elif event.type == MOUSEBUTTONUP:
mousex, mousey = event.pos
i,j,x,y = get_position_clicked(CROSSPOS,mousex,mousey)
if (i,j,x,y) != (None,None,None,None):
connection.send(str(i)+" " +str(j) + " " + str(x) + " " + str(y) )
logger("server.txt","send()")
cross[i][j] = BLACKPIECE
pygame.draw.circle(DISPLAYSURF,BLACK, (x,y), 10)
pygame.display.update()
FPSCLOCK.tick(FPS)
mousex, mousey = event.pos
i,j,x,y = get_position_clicked(CROSSPOS,mousex,mousey)
if (i,j,x,y) != (None,None,None,None):
connection.send(str(i)+" " +str(j) + " " + str(x) + " " + str(y) )
logger("server.txt","send()")
cross[i][j] = BLACKPIECE
pygame.draw.circle(DISPLAYSURF,BLACK, (x,y), 10)
pygame.display.update()
FPSCLOCK.tick(FPS)