Develop an AI to play Connect Four – Python Tutorial

0
(0)

Learn how to create an expert level artificial intelligence to play Connect Four using Python. We start out with a very simple implementation of just dropping a piece randomly and then progress to choosing a column based on score and then finally implementing the minimax algorithm with alpha beta pruning.

💻 Initial code: https://github.com/KeithGalli/Connect4-Python

🎥Developing the initial connect four game: https://youtu.be/XpYz-q1lxu8
🎥How a board game AI works: https://youtu.be/y7AKtWGOPAE
🎥Alpha-beta pruning: https://youtu.be/l-hh51ncgDI

Video from Keith Galli. Check out his channel: https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw

Keith on social media:
https://www.instagram.com/keithgalli/
https://twitter.com/keithgalli/

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://medium.freecodecamp.org

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

Similar Posts:

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

13 Comments

  1. Sorry but MiniMax with Alpha-Beta pruning is NOT an A.I. Please don't use clickbait titles just for views. Looking forward to a solution with a simple NN, GAN or LSTM.

  2. I love Python and I'll love learn AI, but in Portuguese there are few videos about AI in Python.
    My English is basic. I can understand few words and expressions in the video.
    Translate this video to Portuguese from Brazil if it is possible. PLEASE
    (Some words may be wrong, thanks)

Leave a Reply

Your email address will not be published. Required fields are marked *