Here is the part of my code that I think pose an issue:
import pygame
pygame.init()
fen=pygame.display.set_mode((320, 320))
loop=True
while loop:
x=3
y=0
pygame.draw.rect(fen, (0, 0, 255), (x*10, y*10, x*10+10, y*10+10))
pygame.display.update()
It is suppose to make a square in 10X10 but the x axis it is two time longer than the y axis and I don't undersand. Here is what it does (https://i.stack.imgur.com/J7GhH.png)
I tried puting more parenthesis or doing division but it is not stable and will change the shape of the rectangle at every changes.