From 4e04ebee76ddf1f563f0c3656a7697c5f1c8181a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 2 Nov 2025 20:21:42 -0800 Subject: [PATCH] Update tictactoe_vid.py --- modules/games/tictactoe_vid.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/games/tictactoe_vid.py b/modules/games/tictactoe_vid.py index 8c42203..cf15bfe 100644 --- a/modules/games/tictactoe_vid.py +++ b/modules/games/tictactoe_vid.py @@ -2,7 +2,11 @@ # Uses Pygame to render the game board visually # 2025 K7MHI Kelly Keeton -import pygame +try: + import pygame +except ImportError: + print("Pygame is not installed. Please install it with 'pip install pygame-ce' to use the Tic-Tac-Toe display module.") + exit(1) latest_board = [" "] * 9 # or 27 for 3D latest_meta = {} # To store metadata like status