Coding CHESS in 6 Minutes

  Рет қаралды 7,764

Divine203

Divine203

Күн бұрын

Пікірлер
@divine203
@divine203 3 ай бұрын
Guys, just to be clear. I did add castling i just felt it wasn't necessary to mention it, due to its simple implementation.
@justingolden87
@justingolden87 3 ай бұрын
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
@divine203
@divine203 3 ай бұрын
​@@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-Code
@Green-Code 3 ай бұрын
Sick video dude!!
@divine203
@divine203 3 ай бұрын
Yo It's the green coder. Thanks for stopping by bro
@ghal00xx
@ghal00xx 3 ай бұрын
:O hi i am a fan and you inspire me to code bubble comb and shacker sort in bubble sort :)
@josephjoseph2673
@josephjoseph2673 3 ай бұрын
​@@divine203what? stopping?
@GameCookDev
@GameCookDev 3 ай бұрын
i can see you've monytized your channel! i'm honestly veryyy happy for you!
@divine203
@divine203 3 ай бұрын
@@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
@GameCookDev
@GameCookDev 3 ай бұрын
@divine203 oh well I hope you monetize pretty soon
@TheSandwichCoder
@TheSandwichCoder 3 ай бұрын
Bro how have I never heard of you… your videos are so good! Just subscribed 🔥🔥
@divine203
@divine203 3 ай бұрын
Thanks, just checked u out, ur videos are great too
@Scaazlol
@Scaazlol 3 ай бұрын
Good video, motivated me to write my own chess to practice :p
@Slackow
@Slackow 3 ай бұрын
now castling and en passant :) don't forget that the king can't castle through check either!
@squaredude2
@squaredude2 Ай бұрын
youre so underrated dudee
@ppmico
@ppmico 3 ай бұрын
dn you made it look easy thas how you know you're good
@charlieelliott5332
@charlieelliott5332 3 ай бұрын
sick vid!
@LilMarkooo
@LilMarkooo 3 ай бұрын
great vid 👍
@moaazhany9990
@moaazhany9990 2 ай бұрын
You must've done the beginning of the video at the end so you check how much time did it take😆
@divine203
@divine203 2 ай бұрын
Lol sorta, I predicted 7 minutes, I just changed it when I got to the end
@moyinoluwa3549
@moyinoluwa3549 3 ай бұрын
Nice video 💯
@__vyre
@__vyre 3 ай бұрын
I like the way this fella talks
@divine203
@divine203 3 ай бұрын
Well that's new, Thanx
@GameCookDev
@GameCookDev 3 ай бұрын
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
@divine203
@divine203 3 ай бұрын
@@GameCookDev haha Nah man your the goat. You can use it however u like. Thanks for the comment 🦾
@sverre4632
@sverre4632 3 ай бұрын
Nice video
@Sparkdroid
@Sparkdroid 3 ай бұрын
legendary video 🔥🔥 (when are you gonna add En passant though 👀)
@divine203
@divine203 3 ай бұрын
NEVER!!!!!!
@yotamoren818
@yotamoren818 3 ай бұрын
😂 then it's not cheese​@@divine203
@gabtrzimajewski
@gabtrzimajewski 3 ай бұрын
what about castle?
@diegoaredes2721
@diegoaredes2721 3 ай бұрын
Buen video
@verysadboyo7424
@verysadboyo7424 3 ай бұрын
Epic
@rossmaxx
@rossmaxx 3 ай бұрын
Wrong language. Just do pip install chess and call it from your code.
@GreekgamingGoat
@GreekgamingGoat 3 ай бұрын
w
@r75shell
@r75shell 3 ай бұрын
What about en passant?
@divine203
@divine203 3 ай бұрын
2:10
@NicolasPL_
@NicolasPL_ 3 ай бұрын
Could you elaborate on how did you implement the bot?
@divine203
@divine203 3 ай бұрын
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.
@moaazhany9990
@moaazhany9990 2 ай бұрын
nice vid!
@eliteengineer7340
@eliteengineer7340 3 ай бұрын
Bro thinks he is CodeBullet 😭😭😭
@top10expert98
@top10expert98 3 ай бұрын
Bro liked he's own comment 😭
@eliteengineer7340
@eliteengineer7340 3 ай бұрын
@@top10expert98 i dont know what method you use to know thatb u i didnt lmao
@wlockuz4467
@wlockuz4467 3 ай бұрын
​@@eliteengineer7340 stop lying bruv I can see that as well 💀
@eliteengineer7340
@eliteengineer7340 3 ай бұрын
@@wlockuz4467 how do u guys see that
@Some_Kid11
@Some_Kid11 3 ай бұрын
@@eliteengineer7340the method he used is that no one would ever like this comment
@DracoTheNinja
@DracoTheNinja 3 ай бұрын
Nice video
Stockfish vs. Stockfish: PERFECT CHESS
29:24
GothamChess
Рет қаралды 3,7 МЛН
Python Developer learns Rust (and remaking my chess engine)
16:18
TheSandwichCoder
Рет қаралды 77 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
Coding a PHYSICS ENGINE in 5 Minutes
5:09
Divine203
Рет қаралды 7 М.
Programmer VS The Human Benchmark Test | Number Memory
17:47
Code Bullets Day Off
Рет қаралды 541 М.
I made Tetris in C, this is what I learned
15:15
Austin Larsen
Рет қаралды 31 М.
I Made a Weird Chess AI from Scratch
6:38
nextProgram
Рет қаралды 293 М.
Как наука победила религию
17:02
you will never ask about pointers again after watching this video
8:03
I Remade YouTube From Scratch Using Just Bash
17:51
icitry
Рет қаралды 77 М.
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
This is How Easy It Is to Lie With Statistics
18:55
Zach Star
Рет қаралды 6 МЛН
Coding Adventure: Chess
29:22
Sebastian Lague
Рет қаралды 3,9 МЛН