Coding a Complete Chess Game AI With Python (Part 1) | PVP Game Mode

Опубликовано: 10 Июль 2026
на канале: Coding Spot
197,678
3.6k

In this tutorial I will show how to code a fully functional chess game from scratch, with both player vs player and artificial intelligence game modes, using object-oriented programming, the minimax algorithm, Python and its Pygame module.

LINKS:
😺 GitHub Repo: https://github.com/AlejoG10/python-ch...
Part 2 (AI Game mode): Soon...
Windows Setup:    • How to Install Python + PIP + Sublime Text...  
Mac Setup:    • How to Install Python + PIP + Sublime Text...  

FOLLOW FOR MORE:
💥 GITHUB: https://github.com/AlejoG10
💥 INSTAGRAM:   / coding_sp0t  

⏱ TIMESTAMPS ⏱
00:00 Introduction
4:34 Game Structure (UML)
17:13 Initial Setup
24:42 Rendering Board
31:31 Console Board
39:02 Creating Pieces
1:07:50 Dragger
1:37:07 Checking Valid Moves
3:01:36 Moving Pieces
3:37:36 Game Design Config
4:10:21 Restart Function
4:12:14 Pawn Promotion
4:17:09 Castling
4:33:18 Game Checks
4:58:32 En Passant
5:35:05 Castling Bug
5:36:23 End