Ludo
Ludo
import sys
import random
# Initialize Pygame
pygame.init()
# Constants
FPS = 30
GRID_SIZE = 15
# Colors
RED = (255, 0, 0)
# Player colors
def draw_board():
for i in range(GRID_SIZE):
for j in range(GRID_SIZE):
# Game loop
clock = pygame.time.Clock()
while True:
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
draw_board()
# Draw player pieces
pygame.display.flip()
clock.tick(FPS)