I Made A Chess AI But In Only 1 File

  Рет қаралды 25,530

Simply In Dev

Simply In Dev

Күн бұрын

Пікірлер: 88
@IsupposeRL
@IsupposeRL Жыл бұрын
now do it in one line, if you can do it in one file, you can do it in one line
@ItzPouriya
@ItzPouriya 5 ай бұрын
Now do it in one variable, if you can do it in one line, you can do it in one variable.
@SoftBreadSoft
@SoftBreadSoft 5 ай бұрын
​@@ItzPouriyaif you can do it with one variable you can do it with no variable
@ItzPouriya
@ItzPouriya 5 ай бұрын
@@IsupposeRL if u can do it with no variable, then you can't do it!
@IsupposeRL
@IsupposeRL 5 ай бұрын
@@ItzPouriya nah if you can do it with no variable then you CAN do it
@ItzPouriya
@ItzPouriya 5 ай бұрын
@@IsupposeRL if u can do it, then u can't do it💀
@techman9514
@techman9514 Жыл бұрын
This video was awesome, your channel is underrated af
@pokemonbg7674
@pokemonbg7674 Жыл бұрын
wait a sec you have 600 subs wtf?! your a underrated channel that would have 2 mil,based on this vid keep up the work and you will he big in no time ❤
@BPGHchess
@BPGHchess Жыл бұрын
Great video! I tried to also create my own chess bot for the tournament by sebastian but realised that I am just not familiar with c++ enough, let alone engine programming (only did in python). The videodecribes the steps you took to improve the engine in a very clear manner and I have definitely learnt a few things about programming a chess engine.
@simplyindev
@simplyindev Жыл бұрын
Yeah it can be very difficult if it's not a language you're familiar with, but I'm glad you learned something
@fortnitecool905
@fortnitecool905 11 ай бұрын
Love the video bro u deserve more subs
@lubengeorgiev5675
@lubengeorgiev5675 Жыл бұрын
When using iterative deepening it is a pretty good idea to include principle variation (best line from previous depth search). That way you will be searching the new depth muchs faster (most of the time). Also some heuristic to order quiet moves might help you a lot (history moves, killer moves). To increase the depth you have two options: make it search faster (more nodes per second) or make it prune branches. If you want to prune more you can add null move pruning for not too many tokens used. A good idea also might be late move reduction (you cut the depth of search of moves after first 4 for example). The downside is if you do not succeed you are forced to reasearch at full depth or full search window.
@simplyindev
@simplyindev Жыл бұрын
These are all some good ideas for improvements. I didn't mention it in the video but when I submitted I was using 1023 of 1024 tokens so I ran out of space to add anything else in without major optimizations
@lubengeorgiev5675
@lubengeorgiev5675 Жыл бұрын
@@simplyindev Yeah the tokens are pretty limiting. Maybe 2048 tokens would allow for some crazy strong bots. What was the elo of the 1st place bot btw? I think if there is another competition I might be able to get top 10.
@user-dh8oi2mk4f
@user-dh8oi2mk4f Жыл бұрын
@@lubengeorgiev5675 elo of first place is ~2770 on ccrl
@divineatmidnight
@divineatmidnight Жыл бұрын
i watched this whole thing thinking you had like 200k subs, great video imma watch every video you post
@simplyindev
@simplyindev Жыл бұрын
Thank you!
@divineatmidnight
@divineatmidnight Жыл бұрын
@@simplyindev Of course bro, the smallest creators always have the best content
@pizzafuel
@pizzafuel 10 ай бұрын
Great work! Very cool project!
@WendiArif
@WendiArif 11 ай бұрын
Bro this is gold, so underrated 🔥
@eboatwright_
@eboatwright_ Жыл бұрын
Very cool! This was an extremely high quality video, and you did a great job explaining everything I started working on my own engine in Rust right as Sebastian Lague's tournament ended, which is currently rated about 2050 on Lichess :D
@saadkhatri1129
@saadkhatri1129 11 ай бұрын
WOWOWOWOWOWOWOWOOOWWWWWOOUUUUHHHHAHAHHH HOW entertaining and informative this video was. Thanks a lot mate. KEEP IT UP your channel is bound to blow up!!!
@MaKa-en8cw
@MaKa-en8cw 5 ай бұрын
Great vid! Hope the algorithm picks it up
@oliverellingson3140
@oliverellingson3140 Жыл бұрын
This was a masterpiece, well done!!!!
@makytondr8607
@makytondr8607 Жыл бұрын
Epic video! You’re inspiring me to try to do the same! Also, congrats on making it to 1800 elo with a mini bot, imagine how high you could go without the token restriction!
@simplyindev
@simplyindev Жыл бұрын
That's awesome, go for it!
@NateMint
@NateMint Жыл бұрын
that was really fun to watch!
@simplyindev
@simplyindev Жыл бұрын
Thank you! I'm glad you enjoyed it
@zacmrd
@zacmrd 11 ай бұрын
Great video honestly, i cant code either but i always like watching people make chess bots. Let me know if you plan to do this again i can point out some of the more advanced mistakes your bot is making as a stronger chess player
@Anybody197
@Anybody197 11 ай бұрын
love video you got a new sub
@orhun_kose
@orhun_kose 7 ай бұрын
Great video! You deserve much more views and subs. I'm wondering which software are you using to make the animations?
@simplyindev
@simplyindev 6 ай бұрын
I use motion canvas which lets you create animations through code
@NotVoid0069
@NotVoid0069 11 ай бұрын
Bro this video is a youtube Gem!!!! very underrated
@Julius-chess
@Julius-chess 6 ай бұрын
great video dude!
@CryptiCryptoAIM
@CryptiCryptoAIM 26 күн бұрын
I don't think you can make a reinforced learning ai in 1024 tokens because this way you could make an infinitely good bot, just by pretraining.
@Σφι
@Σφι Жыл бұрын
underrated
@azanjac
@azanjac Жыл бұрын
Sweet revenge
@davidrahabi
@davidrahabi 5 ай бұрын
awesome video
@Lisanicolas366
@Lisanicolas366 Жыл бұрын
Super interesting video!
@Prometheus4096
@Prometheus4096 11 ай бұрын
Very cool you documented your bot. I only saw the competition after it ended. I always wanted to try program a chess bot. So with this very nice C# framework and everything but the move search implemented, I also gave it a try. I went 10x over the token limit as the competition is over. But I am gonna try my bot vs yours. I had so many bugs in my bot. When it is searching a million positions and you have 10 000 lines of code, figuring out wtf is going on gets really hard. I am new to C# and I don't know how to code with little tokens so I think I would have failed hard at the competition. Maybe if there's a 2048 token limit competition I will submit something. That said, your no of positions evaluated at 4:51 seems wrong. It goes up exponentially, meaning you search until depth 5 almost instantly, dept 6 takes a while, and depth 7 is basically not achievable. Without move sorting, many positions have 30 legal moves, so it goes n^30. And with good move ordering, you can get to 5 to 15 branches added for each depth.
@simplyindev
@simplyindev 11 ай бұрын
I'd be very interested to see the results of that game! Yeah I knew my phrasing of exponentially was not technically correct in the math sense, but I was just using it by the definition of a more rapid increase. Same thing with my use of depth vs ply is chess coding was wrong, but I think depth was much more understandable to people
@GuvBubbs
@GuvBubbs Жыл бұрын
This was great
@goatguymanperson9961
@goatguymanperson9961 Жыл бұрын
This was great
@klatchabobby
@klatchabobby Жыл бұрын
Making my own chess engine is a dream I have, but I unfortunately have no coding experience beyond one high school class of C# from which I've retained nothing
@simplyindev
@simplyindev Жыл бұрын
That's alright, you'd be surprised how little coding knowledge you actually need to get a basic one working
@kylebarvel
@kylebarvel Жыл бұрын
I thought this meant the ai can control a column file in a board
@simplyindev
@simplyindev Жыл бұрын
I can understand the confusion, I didn't even think about that 😂
@oscareditedthis
@oscareditedthis 4 ай бұрын
​​@@simplyindevThat actually sounds like s good video. Imagine, one half of the board has a good AI, and then other half has a different AI and they need to somehow coordinate their attacks. Edit: I don't mean black has 1 AI and white has another. I mean black uses 2 AIs but split between the board.
@NewUser000NewUser
@NewUser000NewUser 3 ай бұрын
​@oscareditedthis Martin +sf16 alternating bots. Prob 2000lp
@siyuanma2323
@siyuanma2323 11 ай бұрын
Very impressed by your video style, how did you make it?
@simplyindev
@simplyindev 11 ай бұрын
I used a tool called motion canvas which allows you to create animations with code
@siyuanma2323
@siyuanma2323 11 ай бұрын
@@simplyindev thank you! I hope you get your play button someday!
@kotsitsvetanov8564
@kotsitsvetanov8564 11 ай бұрын
when watching this i thought you were some big youtuber. how are you not famous yet?
@Shop-v6z
@Shop-v6z 4 ай бұрын
your bot played a popular opening called Jobava london lol.
@gens8534
@gens8534 Жыл бұрын
best chess video i've ever seen. can we find the code somewhere or is it confidential?
@simplyindev
@simplyindev Жыл бұрын
Here's the link to where Sebastian Lague has all the submitted bots, but 579 is mine. There's a lot to learn from all the different entries github.com/SebLague/Tiny-Chess-Bot-Challenge-Results/blob/main/Bots/Bot_579.cs
@koala_speedruns9159
@koala_speedruns9159 11 ай бұрын
nice content
@berkaycosgun8901
@berkaycosgun8901 Жыл бұрын
6:00 AT THİS POINT BRO SACRIFISE THE SACRIFISE GAMEEEEEEEEEEEEEEEEEEEEEEEEEE
@villss894
@villss894 10 ай бұрын
can you make a chess engine with 10< >1files
@satyamroy6734
@satyamroy6734 Ай бұрын
the board eval thing is not the best as ur bot will be a prey of the horizon effect which happened to older coded chess engines even though they were far better codes! but it works
@surpris5269
@surpris5269 6 ай бұрын
Wait how u make bots to not playing with each other same game? 🤔🤔🤔
@storieswithfarouk6739
@storieswithfarouk6739 5 ай бұрын
Where can i access tje source code please
@simplyindev
@simplyindev 5 ай бұрын
Here's the link to where Sebastian Lague has all the submitted bots, but 579 is mine. There's a lot to learn from all the different entries github.com/SebLague/Tiny-Chess-Bot-Challenge-Results/blob/main/Bots/Bot_579.cs
@Thischannel_will_save_yourlife
@Thischannel_will_save_yourlife 28 күн бұрын
fact that eval boards are symmetrical is a mistake, I'm an experince chess player and I can help you with that
@spiderpig20
@spiderpig20 20 күн бұрын
It saves tokens only to store one half
@Conofive
@Conofive 3 ай бұрын
the what max algorithm?
@provn_tq97
@provn_tq97 Жыл бұрын
cool
@VeryRandomStuff361
@VeryRandomStuff361 Жыл бұрын
0:00 0:31 come on they arent that smart
@hoangnam5848
@hoangnam5848 Жыл бұрын
wait.... how is it even possible to lose to the random bot :D
@simplyindev
@simplyindev Жыл бұрын
I mean since it is random, given infinite time it would beat stockfish in a game eventually, but the first bit was so bad that sometimes it gets into a weird position where the random bot is basically forced to deliver checkmate lol
@TheBcoolGuy
@TheBcoolGuy 20 күн бұрын
elo 3 :))
@rextaylor1295
@rextaylor1295 11 ай бұрын
what is a token ?
@ZDTF
@ZDTF Ай бұрын
Idk I just wanted to remind you and make you curious again
@vxv010
@vxv010 Жыл бұрын
700th subscriber
@EAxvii
@EAxvii 8 ай бұрын
Who got number 1?
@sahildas.
@sahildas. Жыл бұрын
Pls help me beat Antonio
@leolen8029
@leolen8029 2 ай бұрын
This isn't AI though, it's a algorithm that calculates the best move based on programmed logic
@whitemouse2460
@whitemouse2460 12 күн бұрын
That is exactly what Intelligence is, artificial or not. Ability to calculate the best move to achieve the final goal according to preset rules.
@Eurowarswhatif
@Eurowarswhatif 11 ай бұрын
😈😈I'm younger and I've beat amir
@ereralp5kekadam30
@ereralp5kekadam30 11 ай бұрын
Emir*
@dominiccaesarok5077
@dominiccaesarok5077 Жыл бұрын
nice Praise Jesus! pls repent.
@startrexpips3650
@startrexpips3650 11 ай бұрын
What is a token ?
How Many Rooks to BEAT Stockfish?
24:58
iwantcheckmate
Рет қаралды 56 М.
Battle Nations Beta Gameplay #9 | First Logging Camp and Second TF2 Mission!
19:28
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Can THIS win Sebastian Lague's Chess challenge?
10:11
Game Tech Explained
Рет қаралды 204 М.
The Search for the Longest Infinite Chess Game
29:20
Naviary
Рет қаралды 1 МЛН
I Made a Weird Chess AI from Scratch
6:38
nextProgram
Рет қаралды 293 М.
My Chat Made a Chess Bot
24:36
Green Lemon Games
Рет қаралды 97 М.
I Made a Chess Engine in Minecraft
33:41
Kiddy Kene
Рет қаралды 107 М.
I created an AI to Play Chess
11:52
Code Bullet
Рет қаралды 2,8 МЛН
I made my own chess bot (Part 1)
14:49
Data Time
Рет қаралды 13 М.
I Ran a Chess Programming Tournament, Here's How it Went!
1:18:42
Sebastian Lague
Рет қаралды 643 М.
I created the ultimate Chess Ai (it can cheat)
26:38
DougDoug
Рет қаралды 4,1 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН