A premium dark-themed Game Hub featuring two fully-featured classic games โ Tic-Tac-Toe with a smart AI opponent and Hangman with 60+ words across 5 categories. Built entirely with Python and Tkinter.
| Feature | Details |
|---|---|
| ๐ค AI Opponent | Minimax algorithm with Alpha-Beta pruning โ unbeatable on Hard |
| ๐ฏ Difficulty Levels | Easy (random) ยท Medium (mixed) ยท Hard (perfect play) |
| โ Choose Your Mark | Play as X or O |
| ๐ Score Tracking | Wins ยท Draws ยท Losses per session |
| ๐ Win Highlighting | Winning cells highlighted green (you) or red (AI) |
| ๐ Move History | Live log of every move made |
| Feature | Details |
|---|---|
| ๐ 5 Categories | Animals ยท Countries ยท Technology ยท Sports ยท Food |
| ๐ 60+ Words | Unique words with individual hints for each |
| ๐จ ASCII Art | Animated 7-stage hangman drawing |
| โจ๏ธ Dual Input | On-screen keyboard buttons + physical keyboard typing |
| ๐ก Hint System | One hint available per game |
| ๐ด Letter Tracking | Wrong letters highlighted red, correct ones green |
| ๐ Score Tracking | Wins & Losses per session |
- Python 3.x (Tkinter is included by default)
git clone https://github.com/YOUR_USERNAME/HexSoftwares_Game_Hub.git
cd HexSoftwares_Game_Hub
python games.pyThe AI uses the Minimax algorithm with Alpha-Beta pruning:
- Minimax โ recursively evaluates all possible game states and picks the optimal move
- Alpha-Beta pruning โ skips branches that can't affect the result, making it faster
- On Hard difficulty the AI plays a perfect game โ it never loses
- On Medium it makes random moves 35% of the time for a fair challenge
- On Easy it plays fully randomly
Score: AI wins โ +10 - depth
You win โ depth - 10
Draw โ 0
HexSoftwares_Game_Hub/
โ
โโโ games.py # Main application (GameHub + TicTacToe + Hangman)
โโโ README.md # Project documentation
| Category | Sample Words |
|---|---|
| ๐ Animals | elephant, butterfly, kangaroo, flamingo, chameleon |
| ๐ Countries | pakistan, australia, switzerland, indonesia, portugal |
| ๐ป Technology | python, algorithm, blockchain, kubernetes, encryption |
| โฝ Sports | basketball, gymnastics, badminton, archery, wrestling |
| ๐ Food | spaghetti, croissant, quesadilla, avocado, watermelon |
- Python 3 โ Core language
- Tkinter โ GUI framework (built-in)
- Random โ Word selection & Easy AI moves (built-in)
โ Zero external dependencies โ runs out of the box!
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฎ GAME HUB Hex Softwares Internship โ
โ ๐ Session: TTT W:2 D:1 L:0 Hangman W:3 L:1 โ
โโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ โ
โ โโญ โ ๐ชข โ
โ Tic-Tac-Toe โ Hangman โ
โ โ โ
โ Smart AI ยท 3 levels โ 5 categories ยท 60+ words โ
โ โ โ
โ [ โถ Play ] โ [ โถ Play ] โ
โโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Ubaidullah Waheed Developed as Task 3 of the Hex Softwares Python Programming Internship.
- ๐ Hex Softwares
- ๐ง [email protected]
- ๐ผ LinkedIn โ Hex Softwares
This project is licensed under the MIT License.