Making a Chess Ai from scratch with python

preview_player
Показать описание

In this Video we are going to make a chess game and it's AI from scratch using python and pygame.
The AI algorithm that we're going to use is called Minimax Algorithm and alpha beta pruning

Documentations:

✌️ Thanks again for watching our video

Intro: (0:00)
About Chess Engines: (0:16)
Making a Chess game: (2:00)
Minimax Algorithm: (3:30)
Chess Minimax Implementation: (6:04)
outro: (7:20)

found me on:

Thanks for watching and subscribe.

music:
(FREE) Retrowave | Synthwave Music - "Revival" - No Copyright

Scott buckley: 🎵🎶 'Undertow ' (Royalty-free music)🎶🎵
A sombre, ebbing piano/string/synth track. Inspired by times where life takes unexpected turns; sometimes you just can't help but be pulled with it.

#chess #minimaxalgorithm #pythonbegginer #algorithm #minimax #alphabetapruning
Рекомендации по теме
Комментарии
Автор

Just wanted to appriciate your work After i discovered your video it made my final year project so easy. Got a new sub and thanks to you our grp made a major success ❤

arwingamingyt
Автор

Shalom afternoon and thank you for sharing

This is the best python chess game I have seen so far.
IF IT HAD the follow option features:

A 'takeback' button, a 'hint' button, keeping track of the chess notation of the moves being made, to display the taken pieces which were captured, an online socket server for multiplayer, harder AI, an animated chess battle for each move, a variety of different sounds effects and a winning screen animation.

it may stop my metaphoric pacemaker, so to speak.

You are an amazing engineer!

Thank you for sharing!


Shalom

johnadriandodge
Автор

I think an improvement is to use the python-chess library, it offers many functions to help both in the evaluation, in Minimax, and when making the boards according to the FEN provided, without needing a specific function, the library also helps with the question of wins and draws, as it contains all the possible draw variants in chess, such as five-fold repetition, etc.

philipigomes
Автор

Hey, I also made a python chess bot using minimax algorithm, I played against your ai and it beat it (due to it having more evaluation methods despite a depth of 3). Also you should make it so that you can play as black against the ai. Happy coding, I enjoyed the vid!

NitroFunWon
Автор

Hey, how many nodes/second and elo did you get with this chess engine?

curiousmind
Автор

Which is best language machine learning or C++ for making strong chess engine??

godofbattleyt
visit shbcf.ru