Mrtiger007/Chess-game
0
1---2title: Chess Game3emoji: ♟️4colorFrom: pink5colorTo: purple6sdk: gradio7sdk_version: 5.35.08app_file: app.py9pinned: false10---11 12# ♟️ Chess Game with Adaptive AI13 1415 16An interactive chess game with three AI difficulty levels, created by Akhilesh Kumar Tiwari. Play against a computer opponent that adapts to your skill level.17 18## 🌟 Features19 20### AI Difficulty Levels21- **Easy**: Perfect for beginners (makes occasional mistakes)22- **Medium**: Balanced challenge (uses basic strategies)23- **Hard**: Advanced opponent (minimax algorithm with alpha-beta pruning)24 25### Game Features26- Standard chess rules enforcement27- Real-time board visualization28- Move validation with helpful hints29- Computer thinking time display30- Responsive web interface31 32## 🚀 How to Play33 341. Select your difficulty level352. Enter moves in algebraic notation (e.g., e4, Nf3, O-O)363. Press Enter or click "Make Move"374. Computer responds automatically385. Use "New Game" to reset anytime39 40### Quick Move Reference41| Move Type | Examples |42|----------------|-------------------|43| Basic moves | e4, Nf3, Bb5 |44| Captures | exd5, Nxe5 |45| Castling | O-O, O-O-O |46| Checks | Qh5+, Bxf7+ |47| Checkmate | Qh7#, Nf7# |48| Promotion | e8=Q, a1=N |49 50## 🛠️ Technical Details51 52### AI Implementation53- **Easy**: Random moves with occasional blunders54- **Medium**: Piece-value evaluation with simple tactics55- **Hard**: Minimax algorithm (depth=2) with alpha-beta pruning56 57### Requirements58- Python 3.9+59- `gradio` for the web interface60- `python-chess` for game logic61- `stockfish` recommended for optimal hard-level play62 63## 📦 Deployment64 65This space is deployed using:66- Gradio SDK v5.35.067- Docker container with Stockfish support68- Custom chess AI implementation69 70## 👨💻 About the Creator71 72**Akhilesh Kumar Tiwari** 73Chess enthusiast and AI developer 74[GitHub Profile](https://github.com/akhilesh-tiwari) 75Contact: akhilesh.tiwari@example.com76 77## 📜 License78 79MIT License - Free to use and modify