Guys, just to be clear. I did add castling i just felt it wasn't necessary to mention it, due to its simple implementation.
@justingolden873 ай бұрын
I'm surprised it was simple for you. I figured since you can't castle when in check or if you've castled before or to reveal a check and you also have to check if either piece has moved that it's rather complex
@divine2033 ай бұрын
@@justingolden87 I see ur point. The thing about castling is its rules are not intricate. Unless ur logic for the rest of the game is flawed, its mostly just a bunch of if statements. Plus the move itself is very direct so you can just hard code the pieces in their appropriate squares. Then u just check if the rook or king has moved before to remove castling rights (a simple counter will do), see if the king is on check to stop castling, etc... I actually forgot to implement the check part cant lie, but i have other projects to work on currently. So chess is in the back bunner atm.
@Green-Code3 ай бұрын
Sick video dude!!
@divine2033 ай бұрын
Yo It's the green coder. Thanks for stopping by bro
@ghal00xx3 ай бұрын
:O hi i am a fan and you inspire me to code bubble comb and shacker sort in bubble sort :)
@josephjoseph26733 ай бұрын
@@divine203what? stopping?
@GameCookDev3 ай бұрын
i can see you've monytized your channel! i'm honestly veryyy happy for you!
@divine2033 ай бұрын
@@GameCookDev Oh not yet, hopefully soon tho. KZbin apparently just throws an ad if they notice some level of traffic. I've seen it in urs too
@GameCookDev3 ай бұрын
@divine203 oh well I hope you monetize pretty soon
@TheSandwichCoder3 ай бұрын
Bro how have I never heard of you… your videos are so good! Just subscribed 🔥🔥
@divine2033 ай бұрын
Thanks, just checked u out, ur videos are great too
@Scaazlol3 ай бұрын
Good video, motivated me to write my own chess to practice :p
@Slackow3 ай бұрын
now castling and en passant :) don't forget that the king can't castle through check either!
@squaredude2Ай бұрын
youre so underrated dudee
@ppmico3 ай бұрын
dn you made it look easy thas how you know you're good
@charlieelliott53323 ай бұрын
sick vid!
@LilMarkooo3 ай бұрын
great vid 👍
@moaazhany99902 ай бұрын
You must've done the beginning of the video at the end so you check how much time did it take😆
@divine2032 ай бұрын
Lol sorta, I predicted 7 minutes, I just changed it when I got to the end
@moyinoluwa35493 ай бұрын
Nice video 💯
@__vyre3 ай бұрын
I like the way this fella talks
@divine2033 ай бұрын
Well that's new, Thanx
@GameCookDev3 ай бұрын
you're such a genius dude! no Fing way i would figure any of that out in java script XD hell i might even use the source code for my uni projects🤣 just kidding
@divine2033 ай бұрын
@@GameCookDev haha Nah man your the goat. You can use it however u like. Thanks for the comment 🦾
@sverre46323 ай бұрын
Nice video
@Sparkdroid3 ай бұрын
legendary video 🔥🔥 (when are you gonna add En passant though 👀)
@divine2033 ай бұрын
NEVER!!!!!!
@yotamoren8183 ай бұрын
😂 then it's not cheese@@divine203
@gabtrzimajewski3 ай бұрын
what about castle?
@diegoaredes27213 ай бұрын
Buen video
@verysadboyo74243 ай бұрын
Epic
@rossmaxx3 ай бұрын
Wrong language. Just do pip install chess and call it from your code.
@GreekgamingGoat3 ай бұрын
w
@r75shell3 ай бұрын
What about en passant?
@divine2033 ай бұрын
2:10
@NicolasPL_3 ай бұрын
Could you elaborate on how did you implement the bot?
@divine2033 ай бұрын
Stockfish is available for download online, it comes as a .exe. All I needed is an API to communicate with it, i.e send the games position as a request and get the best move to play as a response. The rest is straight Forward.
@moaazhany99902 ай бұрын
nice vid!
@eliteengineer73403 ай бұрын
Bro thinks he is CodeBullet 😭😭😭
@top10expert983 ай бұрын
Bro liked he's own comment 😭
@eliteengineer73403 ай бұрын
@@top10expert98 i dont know what method you use to know thatb u i didnt lmao
@wlockuz44673 ай бұрын
@@eliteengineer7340 stop lying bruv I can see that as well 💀
@eliteengineer73403 ай бұрын
@@wlockuz4467 how do u guys see that
@Some_Kid113 ай бұрын
@@eliteengineer7340the method he used is that no one would ever like this comment