First of all, I'm on macOS Mojave 10.14.1 with pygame 1.9.4.
Also, I am using the PyCharm IDE and am using python 3.7.1.
I decided that it would be interesting to try out pygame, but drawing even a simple rectangle or image does not work.
Here is the code I have tried using to draw a rectangle, draw an image that is in the same directory as the file, and fill the window with white. None of which work.
import pygame
pygame.init()
win = pygame.display.set_mode((600, 600))
pygame.display.set_caption("Snake")
image = pygame.image.load("java_logo.png")
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
win.fill((0, 255, 0))
pygame.draw.rect(win, (255, 0, 0), (50, 50, 50, 50))
win.blit(image, (200, 200))
pygame.display.flip()
pygame.quit()
Edit:
Here was the image used: https://i.imgur.com/OoSHkXX.png