Making a Chess Bot from Scratch (part 1)

Поділитися
Вставка

КОМЕНТАРІ •

  • @-syn9
    @-syn9 5 місяців тому +3

    Aaah this reminds me of my chess bot project, which was also my first (real) rust project. The way you check for pins and such is actually really well explained, I never really got that to work with just bit fiddling so I use a lot less efficient algorithm, but I may go back and see if I can get yours to work. On the interface, I'd recommend implementing UCI (Universal Chess Interface). It's a relatively simple text-based protocol that allows your engine to talk with basically all front-ends (simpler than implementing your own Python GUI at least :P)

    • @TheSandwichCoder
      @TheSandwichCoder  5 місяців тому

      Oh Thx! Ok I’ll do some research on UCI. Hopefully I’ll get it working by the next video…

  • @oreofallacechess
    @oreofallacechess 5 місяців тому

    Love the vid!!! I'm a chess youtuber who has done some very small coding projects. This video is the perfect union between programming and chess... :) The longer I watch your video the better it gets....

  • @albator8159
    @albator8159 5 місяців тому

    Great video.
    How much memory do the precomputed moves take ?

    • @TheSandwichCoder
      @TheSandwichCoder  5 місяців тому +1

      Thx! Uhh at least 30 mb or that’s what task manager says😅. But for the actual recomputed moves, my array size is like 200 000 for 8 bytes(uint64) so like 16mb? If my math is correct it’s something around there…

  • @Smurdy1
    @Smurdy1 5 місяців тому

    Love seeing people make AI in C++. More members for our empire who can eventually help us overthrow python and finally take over all of AI...
    Oh nice video btw.

  • @user-dh8oi2mk4f
    @user-dh8oi2mk4f 4 місяці тому

    You should use negamax instead of minimax, it's much cleaner(half the code, no if statements on color) and it gives the same results.

  • @AlphanumericPassword
    @AlphanumericPassword 5 місяців тому +1

    how has it alr been 2 months i swear you asked me the diff in memory of an array and a vector last week

    • @TheSandwichCoder
      @TheSandwichCoder  5 місяців тому +2

      Yeah time really flies by, thx for your help through all of c++ 😄

  • @kingmancho5551
    @kingmancho5551 4 місяці тому

    Very cool

  • @DCCHSSG
    @DCCHSSG 5 місяців тому

    I hate the black
    …pieces

  • @user-fi4zi5il9z
    @user-fi4zi5il9z 4 місяці тому

    Okay, now I know that I never ever want to code a chess bot