This is a code to display who won but they show an error TypeErroe: argument 1 must be destination, not string. And yes i did initialize python and python.font.
global winner_text
font = pygame.font.SysFont('Fonts/SuperMario256.ttf', 50)
if success==1:
winner_text = font.render("Player1 Wins", 1, Black)
win.blit('hi', (200, 350))
elif success==2:
winner_text = font.render("Player2 Wins", 1, Black)
elif success==3:
winner_text = font.render("Draw", 1, Black)
win.blit(winner_text, (200, 350))
I tried fixing by adding win as its first argument but it says the destination is not valid.
For those who answered, thanks in advance