This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from better_profanity import profanity | |
from pydantic import BaseModel | |
from email_validator import validate_email, EmailNotValidError | |
MINIMUM_USERNAME_LENGTH = 3 | |
MAXIMUM_USERNAME_LENGTH = 24 | |
ALLOWED_CHARACTERS_REGEX = re.compile(r"^[\x20-\x7E]+$") # Only allow visible/printable ASCII characters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame, random, math | |
WHITE = (255,255,255) | |
BLACK = (0,0,0) | |
SCREENSIZE = (500,500) | |
pygame.init() | |
screen = pygame.display.set_mode(SCREENSIZE) | |
clock = pygame.time.Clock() |