Explaining how BITBOARDS operate within CHESS ENGINES like probably NO ONE DID BEFORE !

preview_player
Показать описание
Hey what's up guys, Code Monkey King's here. In this video I would try to explain how what the so called bitboards are and how in particular they operate within the chess engines.

Pawns Knights Bishops Rooks Queen King
8 00000000 01000010 00100100 10000001 00010000 00001000
7 11111111 00000000 00000000 00000000 00000000 00000000
6 00000000 00000000 00000000 00000000 00000000 00000000
5 00000000 00000000 00000000 00000000 00000000 00000000
4 00000000 00000000 00000000 00000000 00000000 00000000
3 00000000 00000000 00000000 00000000 00000000 00000000
2 00000000 00000000 00000000 00000000 00000000 00000000
1 00000000 00000000 00000000 00000000 00000000 00000000
abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh

Pawns Knights Bishops Rooks Queen King
8 00000000 00000000 00000000 00000000 00000000 00000000
7 00000000 00000000 00000000 00000000 00000000 00000000
6 00000000 00000000 00000000 00000000 00000000 00000000
5 00000000 00000000 00000000 00000000 00000000 00000000
4 00000000 00000000 00000000 00000000 00000000 00000000
3 00000000 00000000 00000000 00000000 00000000 00000000
2 11111111 00000000 00000000 00000000 00000000 00000000
1 00000000 01000010 00100100 10000001 00010000 00001000
abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh

8 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
7 ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎
6
5
4
3
2 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙
1 ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖
a b c d e f g h
Рекомендации по теме
Комментарии
Автор

Thanks a lot, using bitboards are very challenging when it comes to implementation. I kind a could implement chess engine array based using C# "not bug free :) " but still strugling with bitboard version of it. Have you any plan to implement chess engine using C#? thanks again.

simplepycodes
Автор

New to chess programming, helped me alot thanks!

HkLearnsAI
Автор

amazing video very helpful, can we access the engine ?

projectsmaker
Автор

are those dogs or ducks in the background?

ruffianeo
Автор

Hey, @Chess Programming, I love your videos, they are always full of educational content and makes me feel confident enough to program my own chess engine. However, I do have a slight issue, it is that I have to program a chess engine in python and borland c++ (one for my club, and one for the university) I tried following the Toyfish Tutorials, but the fact that it was not completely legal made me worry. And now i have about a month left on me to develop them. (atleast one of them), I wanted to ask you about this, that can the concept of bitboards be applied to a pure python chess engine? and since Toyfish move generation was extremely slow, will using bitboards speed it up? I can implement the rest of the rules, but using bitboards would certainly be a bit difficult than mailbox. Also the other engine is to be made with Borland C++ which doesn't have a 64 bit system (it is based of 16 bits) and it only has limited RAM, so what should be the approach for developing such an engine for this platform? Should I use bitboards too? Also since we don't have much memory in Borland C++, will storing the moves be a problem? because I have seen engines searching millions of positions and i wonder if just having about 1MB of RAM is enough of maybe it isn't possible....

I'm sorry for this long comment, but i would greatly appreciate it if you would answer my queries and maybe give some useful advice.
Thanks!

shashwatprasad