Python Game Suite A centralized desktop gaming hub built with Python and Tkinter. This application features three classic games—Snake, Tic-Tac-Toe, and Chess—integrated into a single interface with persistent session scoring.
🎮 Included Games Snake: A high-speed classic where you navigate to collect food and increase your score.
Tic-Tac-Toe: A "Player vs. AI" mode where the computer attempts to block your moves and secure its own victory.
Chess: A simplified chess engine featuring piece selection, valid move highlighting, pawn promotion, and an AI opponent.
✨ Key Features Session Management: Enter your name at the start to personalize your gaming experience.
Score Tracking: A dynamic dashboard tracks your performance across all three games during your active session.
Automated Opponents: Custom-built AI logic for Tic-Tac-Toe and Chess allows for single-player gameplay.
Clean GUI: A modular interface that allows seamless switching between different games and the main menu.
🚀 Getting Started Prerequisites Python 3.x installed.
Standard library access (uses tkinter, random, and copy).
Installation & Execution Clone the repository:
Bash git clone https://github.com/your-username/your-repo-name.git Navigate to the project folder:
Bash cd your-repo-name Run the application:
Bash python game.py 🕹️ How to Play Controls Snake: Use the Arrow Keys to change direction.
Tic-Tac-Toe: Click any empty square to place your 'X'.
Chess: Click a white piece to select it, then click a valid destination square to move.
Scoring System Snake: +10 points for every piece of food eaten.
Tic-Tac-Toe: +5 points for a win, +1 point for a tie.
Chess: +15 points for capturing the enemy King.
🛠️ Technical Overview The project is designed using a Class-based architecture in Python.
GUI Engine: Tkinter Canvas and Frames.
State Management: Deep copying of board states and coordinate-based logic for piece movement.
AI Logic: Randomized decision-making for Chess and win/block priority logic for Tic-Tac-Toe.