Question:
I can’t connect to the server
Repl link/Link to where the bug appears:
https://replit.com/@Thien-MarkHoang/Pygame
Screenshots, links, or other helpful context:
import pygame, sys, random
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((800,600))
#r= random.randint(0, 255)
#b= random.randint(0, 255)
#print(r)
#print(g)
#print(b)
screen.fill((255,255,255))
white = (255, 255, 255)
black = (0, 0, 0)
blue = (0, 0, 255)
red = (255, 0, 0)
green = (0, 128, 0)
pygame.draw.rect(screen, green, (300,200,50,50), 3)
pygame.draw.rect(screen, red, (250,300,50,50), 7)
pygame.draw.rect(screen, blue, (300,250,50,100), 5)
pygame.draw.rect(screen, black, (250,200,50,100), 4)
pygame.draw.rect(screen, green, (250,150,50,50), 3)
pygame.draw.rect(screen, red, (300,150,50,50), 7)
pygame.draw.rect(screen, blue, (250,50,50,100), 5)
pygame.draw.rect(screen, black, (300,50,50,100), 4)
pygame.display.update()
while (True):
for event in pygame.event.get():
if (event.type==QUIT):
pygame.quit()
sys.exit()