I created an AI to Play Chess

  • Published: 25 July 2018
  • Using minimax i created an Ai to play chess.
    Huge thanks to brilliant.org for supporting this channel, check them out at https://www.brilliant.org/CodeBullet

    I'll upload the program soon

    Twitter: https://twitter.com/code_bullet
    Patreon: https://www.patreon.com/CodeBullet
    Discord: https://discord.gg/UZDMYx5

Comments • 3 929

  • Dustin Machat
    Dustin Machat  4 hours back

    UPLOAD IT, IT'S 2020


    • Jam Man
      Jam Man  5 hours back

      I’m not gonna list all of these since I’m sure you all already know this.

      **nervous sweating**

      • Felipe
        Felipe  14 hours back

        3:02 lmao this is what my code always turns out like doing anything

        • John Ruiz
          John Ruiz  2 days back

          people who play chess: wait that's illegal

          • Calder Johnson
            Calder Johnson  2 days back

            You should make a sequel where you do it correctly. It’s a great idea, but you missed so many rules(check checkmate stalemate promotion castling)

            • Tahka DM
              Tahka DM  3 days back

              By the way...deep blue is outdated and easy to beat now xD

              • Just a Lemon
                Just a Lemon  4 days back

                8:37 song?

                • Timur Sultanov
                  Timur Sultanov  4 days back

                  Your AI actually ignores king while in fact king should be assigned a value od a million or something, because cornering the king is the goal of the game

                  • Erik Merrill
                    Erik Merrill  6 days back

                    “We’re going to assign pieces values and from whites perspective we are trying to reach a high score.”

                    That’s not how this works. That’s not how any of this works.

                    • Dannyboy66
                      Dannyboy66  6 days back

                      Where's the program

                      • 陈北宗
                        陈北宗  1 weeks back

                        Here is a cheat: write some netral network, and train it against Stockfish, one of the best chess AI out there that is free and open source. Stockfish supports a command line interface, which allows your code to talk to it programmatically, and then all you need is a chess board software to watch the games play out.

                        • monogometr1c
                          monogometr1c  1 weeks back

                          "I'll upload the program soon"

                          So that was a fucking lie

                          • Dark Blaze
                            Dark Blaze  2 weeks back

                            I remember reading this thing and it was saying something like, “there are more possible ways for a chess match to end then there are atoms in the observable universe.”

                            • Enzo Frederick
                              Enzo Frederick  2 weeks back

                              Go to 5:42 and look ant his arms


                              • Aniruddh Barve
                                Aniruddh Barve  2 weeks back

                                Looks like you know nothing about Chess

                                • Weimin Wu
                                  Weimin Wu  3 weeks back

                                  the only reason i like chess is so when i beat someone i can see their reaction(aka cry)

                                  • SuperSpruce
                                    SuperSpruce  3 weeks back

                                    “I’ll upload the program soon” - IT’S 2020 AND IT HASN’T BEEN UPLOADED YET!

                                    • bg killas
                                      bg killas  3 weeks back

                                      actually been for a bit he just doesent update discriptions https://www.thebigcb.com/projects/chess/chess.html

                                  • Rockstar
                                    Rockstar  3 weeks back

                                    next step: beat AlphaZero

                                    • Dylan Folts
                                      Dylan Folts  3 weeks back

                                      Nailed that ending there

                                      • KUSRWE - J7SN2AO
                                        KUSRWE - J7SN2AO  3 weeks back

                                        please be C++

                                        please be C++

                                        please be C++

                                        its not C++ :(

                                        • Omnitroph
                                          Omnitroph  3 weeks back

                                          If you want your AI to win, you need to teach is what WINNING IS. The goal of the game is CHECKMATE, not removing all enemy pieces. As the AI does not know this, it will simply ignore the king entirely, and lose (or stalemate, if it's good enough) automatically to any opponent that knows how to play chess.

                                          • Valerie Allen
                                            Valerie Allen  3 weeks back

                                            I don't know how to play chess :I

                                            • Edwin Owen
                                              Edwin Owen  4 weeks back

                                              06:20 Black King is in check by pawn...

                                              • Slippery_ Gecko
                                                Slippery_ Gecko  4 weeks back

                                                no offense but the chess ai is not good lol but better than my c++ calculator

                                                • Niloy Yousuf
                                                  Niloy Yousuf  4 weeks back

                                                  chess things

                                                  • Niloy Yousuf
                                                    Niloy Yousuf  4 weeks back

                                                    make more of these

                                                    • Liggliluff
                                                      Liggliluff  1 months back

                                                      (1:05) "Kn"? I am disappointed
                                                      . The proper letter is "N".

                                                      • RaiXe
                                                        RaiXe  1 months back

                                                        *I'll upload the program soon*

                                                        • Bryce Vogt
                                                          Bryce Vogt  1 months back

                                                          I am a beginner coder. What site do you recommend for starters with little experience.

                                                          • SCRT091605
                                                            SCRT091605  1 months back

                                                            I some what good at chess and I usually look 2-3 moves ahead

                                                            • JCDP's gamming zone
                                                              JCDP's gamming zone  1 months back

                                                              when you realise that he has to remake every game he adds A.I to

                                                              • SnowFromFlame
                                                                SnowFromFlame  1 months back

                                                                “Grandmasters think something like seven moves ahead”

                                                                • Calvin Dehoff
                                                                  Calvin Dehoff  1 months back

                                                                  Pls get as far as you can in chess 100

                                                                  • Aleksa Kocijasevic
                                                                    Aleksa Kocijasevic  1 months back

                                                                    Black square should be on the bottom left.

                                                                    • MrOboema
                                                                      MrOboema  1 months back

                                                                      @6:29. Best. Chess. Move. Ever. Queen takes King 😁

                                                                      • Erin Hackett
                                                                        Erin Hackett  1 months back

                                                                        Wait, so who's going to win? Code bullets AI or not code bullets AI.

                                                                        • Vincent Roireau-Minville
                                                                          Vincent Roireau-Minville  1 months back

                                                                          BRO get AlphaZero outta here with that weak shit we have a new champ

                                                                          • Joseph Stalin
                                                                            Joseph Stalin  1 months back

                                                                            Bruh this is the easiest chess ai ever

                                                                            • Ares Stavropoulos
                                                                              Ares Stavropoulos  1 months back

                                                                              “i’ll upload the program soon”

                                                                              • Kevin Medina
                                                                                Kevin Medina  1 months back

                                                                                We have cool math but I like this

                                                                                • Solrun Debes Heinesen
                                                                                  Solrun Debes Heinesen  1 months back

                                                                                  P P P P P P P P

                                                                                  • BlueInkling 101
                                                                                    BlueInkling 101  1 months back

                                                                                    Wait what program does he use

                                                                                    • Charles .H
                                                                                      Charles .H  1 months back

                                                                                      Code bullet technologies

                                                                                      • Anthony Fiorella
                                                                                        Anthony Fiorella  1 months back

                                                                                        Why was there a faint watermark of 'instagram' in the top left almost the whole video?

                                                                                        • Bechara Rizk
                                                                                          Bechara Rizk  1 months back

                                                                                          When is soon? 😅

                                                                                          • Josh Legacy
                                                                                            Josh Legacy  1 months back

                                                                                            Black has to move their King out of check here.

                                                                                            • MARTINGOLDING96
                                                                                              MARTINGOLDING96  2 months back

                                                                                              When did the AI beat him at 6:26? The AI had already lost at that time

                                                                                              • Paolo Cremona
                                                                                                Paolo Cremona  2 months back

                                                                                                A-left; B-will go left to seek the lowest number; A-left; B-will go right to select 2. that's should be the highest you can get as player A with that number setup if B is a perfect opponent player.