I have began to use unicurses to make a game but for some reason the score counter will not change in the game
score = 0
def spawn(iy,ix,char,points):#y coordinate, x coordinate, character and score
mvaddch(iy,ix,char)
if x == ix and y == iy:#checks to see if player x and y are the same
global score
score = score + points#this doesnt work
mvaddch(ix,iy,' ')#this works
for some reason, when i append this to a main function, the counter on score remains at zero, i have done a lot of research on it and cannot find any answers beyond the obvious that i have already tried
what is going on?