Coding Challenge Announcement: Tiny Chess Bots

  Переглядів 238,505

Sebastian Lague

Sebastian Lague

День тому

Hello! Here's a little coding challenge for anyone who'd like to take part: you have until October 1st to create a tiny chess bot in C# using the framework linked below. You can find more details about the challenge on that page as well.
github.com/SebLague/Chess-Cha...
This challenge is now over. You can find the results over here!
• I Ran a Chess Programm...
Chapters:
0:00 Intro
0:28 MyBot.cs
1:10 Bot Brain Capacity
2:43 The Tournament
3:08 How to Participate
5:00 Outro
Music credits:
A Gentle Pulse by Imprismed
The Cliffs by Trevor Kowalski
Forest Overture by Yehezkel Raz

КОМЕНТАРІ: 779
@SebastianLague
@SebastianLague 4 місяці тому
The challenge is now over -- thanks so much to everyone who took part! You can find the results video over here: ukposts.info/have/v-deo/hpVlZJdsg6F8l3U.htmlsi=xVjO6WsrSNLn_AAE
@Tepalus
@Tepalus 9 місяців тому
I may use this as my very FIRST programming challenge :D I gonna fail horribly, but it's gonna be fun. lol
@SebastianLague
@SebastianLague 9 місяців тому
Good luck! :)
@danielcreatd872
@danielcreatd872 9 місяців тому
@@SebastianLague How different is c# from c++? I already have some experience with the latter and I'm considering this as an opportunity to know more about c# (which I barely know).
@xblowsmokex
@xblowsmokex 9 місяців тому
@@danielcreatd872knowing c++ will make c# much easier to pick up
@Peter_S_
@Peter_S_ 9 місяців тому
No matter how it results, you will emerge the winner. Best wishes!
@Null-byte
@Null-byte 9 місяців тому
@@danielcreatd872 C# is way easier. No pointers to begin with and a rather more intuitiv "standard library".
@SebastianLague
@SebastianLague 9 місяців тому
Hey everyone -- a number of people have encountered a bug with the board.GetPiece() function, which was a massive oversight on my part. I'm very sorry about that, and have updated the code on github to fix the mistake. If you are participating, please make sure you have the latest version (you can see more info on the Change Log section of the readme in the repo).
@MemePeee
@MemePeee 9 місяців тому
What language is this? sorry im kind of new in IDEs and direct code
@whitemouse2460
@whitemouse2460 9 місяців тому
Are there consequences, like bugs/broken logic, for speedhacking the project? Running 1000 games felt incredibly slow, even at ~1.5 seconds per game, I've set minDelay to zero, but still too slow, so I used CheatEngine to speedhack up to x100 of real time. There were no timeouts for ~600 games and scores kept same proportion, so I assume there are no side effects. Is there any sort of "maximum speed" switch in the project that I missed?
@eig5203
@eig5203 9 місяців тому
Oh man I totally would have spent days wondering what was going wrong if I didn't check the comments here
@wildtom
@wildtom 9 місяців тому
This is a good time to learn C#, I only know Java and a tiny bit of C++, my bot will most defently lose Edit: off to a good start, took me 30 minutes to figure out how to run the game, and I don't understand anything.
@trerouploads8169
@trerouploads8169 9 місяців тому
sounds fun 😮
@b4ux1t3-tech
@b4ux1t3-tech 9 місяців тому
At first, I said to myself "I can't do this, but look forward to seeing what people come up with." Then you mentioned the 1024 token limit, and I thought "huh... I'm actually pretty good at pico 8 development... I could do this!" Great challenge, looking forward to putting something like this together!
@Dragon_Chicken
@Dragon_Chicken 9 місяців тому
LOL same
@theninjascientist689
@theninjascientist689 9 місяців тому
I love this tokenized variation on code golf because it encourages code that is creative but still readable!
@petersmythe6462
@petersmythe6462 9 місяців тому
It encourages variable and function names to be readable. Not necessarily code. There are plenty of ridiculous tricks with side effects these you can use to save space.
@yayl661
@yayl661 9 місяців тому
This will be a lot of fun! I wish everyone good luck!
@woudy7
@woudy7 9 місяців тому
Can't wait to participate in this and afterwards see what other people will make out of this!
@aryanbakshi6189
@aryanbakshi6189 9 місяців тому
Lesgoooo, was very excited when I saw this in the community post. Will start work on this soon
@SebastianLague
@SebastianLague 9 місяців тому
Awesome, I hope you have fun with it!
@Simon_Laserna
@Simon_Laserna 9 місяців тому
Love this challenge idea! Incredible how smooth you have made it for everyone to participate. I really like that it encourages creativity!
@leviathan5792
@leviathan5792 9 місяців тому
I'm very excited to participate, and also see what everyone else comes up with! Thanks for hosting this event!
@brieuclamassiaude-adressee5663
@brieuclamassiaude-adressee5663 9 місяців тому
thank you so much. it's incredible what you do. I've always admired your different projects and being able to participate in one of them is wonderful.
@5implekiw1
@5implekiw1 9 місяців тому
I'm so nervous about doing this since it's my first bot, but I think I'll love the challenge! Good luck everyone! 🍀❤
@asMdl
@asMdl 9 місяців тому
Excellent job as always Sebastian, well planned, clearly explained, clean and elegant details from the idea to the challenge kickoff video. 🤟
@Hesham45456
@Hesham45456 9 місяців тому
I've been subscribed for more than I can remember honestly. And I was so fascinated by the chess first video you uploaded. And now that challenge it just feels like being a dream coming true.
@anneharsta6411
@anneharsta6411 9 місяців тому
I have never coded a chess bot before but I shall try, and try, and try. This seems like its going to be good fun!
@everton.colombo
@everton.colombo 9 місяців тому
Such a great idea! I loved the limits imposed. Can't wait to try it myself and to see what other people came up with!
@quarksandaces2398
@quarksandaces2398 9 місяців тому
I love the framework you gave us! This makes it so much easier for poeple with less expierience.
@tgpapy538
@tgpapy538 9 місяців тому
I wasn't going to enter this at first because I don't consider myself an "advanced programmer" (so to speak). But then I realized that sort of mindset will hold me back from learning and becoming a better developer. So I'm going to enter! Thanks for this challenge :D
@SebastianLague
@SebastianLague 9 місяців тому
Great, I’m happy to hear that! Good luck :)
@RGGaming940
@RGGaming940 9 місяців тому
I just want to say, I really hope all goes well with this challenge, and everyone plays fair (*and that my submission doesn't get screwed up...*). I love your videos by the way, Sebastian, they inspired me to start using Unity and *really* get back into coding. And boy, the "audio smile" your voice has is really nice to listen to! I wish you all the best!
@fratyldrm1749
@fratyldrm1749 9 місяців тому
I got really excited even though I'm not into chess a lot. Hopes to see different challenges in the future!
@novemberbees8742
@novemberbees8742 9 місяців тому
been wanting to get into coding after watching your videos, and this seems like a fun motivation! interested to see what others create!
@kennebro8538
@kennebro8538 9 місяців тому
This looks like a really fun coding challenge, Best of luck to everyone participating!
@DoomerDGR8
@DoomerDGR8 9 місяців тому
Man... your videos are therapeutic for me! I loved Brakey's this way as well. Please never stope.. 4 videos per year. I wont complain. God bless.
@AgnaktoreX
@AgnaktoreX 9 місяців тому
I was really unsure if I want to participate but the way you made that challenge up really encourages me to do it :D
@hamzahgamedev
@hamzahgamedev 9 місяців тому
Your videos have helped me so much in making my dream open world farming game. Thanks Sebastian for making these amazing videos.
@wiechciu0
@wiechciu0 9 місяців тому
That's amazing. You inspired me to start my journey with C# and gamedev a couple months ago, and now I'm ready to fail at your challenge! Brace yourselves :)
@beastbomber2316
@beastbomber2316 9 місяців тому
I love this new form of content. Cant wait to see submissions and future challenges. Sadly I dont play chess so I wouldnt know how to make a good bot. But if there are any future challenges I would definitely join.
@SharpDressedBear
@SharpDressedBear 9 місяців тому
What an amazing idea for a coding challenge! I was a bit worried when Sebastian was polling about it that it would end up just being a bunch of super advanced AI submissions, but the space limitations look like a really good solution to that.
@theangry0077
@theangry0077 9 місяців тому
yeah i had a feeling that somehow someone would port stockfish to c# and dominate everyone else
@Danerd100
@Danerd100 9 місяців тому
I began my adventures in coding a chess bot a few months before your first video on it came out, so we've been following the same path! Yours is way more efficient than mine and can probably blow it out of the water, but this is a cool opportunity to test that
@AlexVoxel
@AlexVoxel 9 місяців тому
This sounds really fun, thank you for organizing it!
@goat5249
@goat5249 9 місяців тому
I just finished watching your other videos on chess. This is awesome!
@antivexium3892
@antivexium3892 9 місяців тому
I'm going to commit to participating in this! I love chess and coding and this is a excellent chance to work on both.
@janikarkkainen3904
@janikarkkainen3904 9 місяців тому
Darrrrn this sounds like a fun challenge! I'm not sure if I'll participate, but seeing that there's a lot of time before the deadline, I might come to back to this in time.
@FrohSim
@FrohSim 9 місяців тому
Heck yeah! You could totally do complexity weight classes for bot vs bot tourneys. A bit like Robocode.
@user-dh8oi2mk4f
@user-dh8oi2mk4f 9 місяців тому
What’s a complexity weight class?
@jacemonster5
@jacemonster5 9 місяців тому
@@user-dh8oi2mk4f i would assume dividing it up so that only bots with similar complexity would compete. For example if your code used all 1024 thingamajigs it would not compete with a bot that only uses 512
@oliverwooding2066
@oliverwooding2066 9 місяців тому
your last video convinced me to retry an old chess programming project, so i guess i’m obliged to take part in this 😅
@connorkeevill5262
@connorkeevill5262 9 місяців тому
Really looking forward to taking part! Thank you for putting this together :)
@arcturus1140
@arcturus1140 9 місяців тому
I'm very excited to take part in this. Interestingly this was startet at the exact time I thought about making a chess bot, so thanks for making it a thing. Even if my bot ain't gonna be the best I'm still excited to have a framework for chess bot making and interesting experiments.
@theangry0077
@theangry0077 9 місяців тому
this is gonna be so fun, thanks a lot sebastian!!
@CYON4D
@CYON4D 7 місяців тому
Nice video by the way what are your thoughts about Unity's new policiy?
@Nimiath
@Nimiath 9 місяців тому
This is such a cool idea! I am very hyped for the end result and will definitely give it a try myself.
@nico371
@nico371 9 місяців тому
This is going to be awesome! Never done anything like this but the size limitations gives me motivation!
@keinerahnt123
@keinerahnt123 9 місяців тому
Excited to participate in the challenge. Thank you for setting up the project!
@flash3621
@flash3621 9 місяців тому
What a great news! I've never really played chess so this is a great way to dive deep into it and learn it haha! Looking forward to participating
@dylanwolf358
@dylanwolf358 9 місяців тому
This is so much fun, please do more of those challenges ! 3:09
@skribblestyle
@skribblestyle 9 місяців тому
Yessss. I hope this becomes a regular thing!
@andriib9390
@andriib9390 9 місяців тому
Oh, this is great! I would really love to see more challenges like this!
@axolteo
@axolteo 9 місяців тому
This is literally perfect timing! I just finished a chess camp!
@Geosquare8128
@Geosquare8128 9 місяців тому
Looking forward to giving this a try!
@SebastianLague
@SebastianLague 9 місяців тому
Awesome, good luck!
@Cxntrxl
@Cxntrxl 9 місяців тому
I'm nowhere near an amazing developer, but this seems like a fun challenge! I'll totally be putting myself against some of my friends bots too, it'll be a great learning experience as well as a fun competition to take part in. Good luck to everyone out there!
@vinish8311
@vinish8311 9 місяців тому
Your videos always leave me with a smile
@jb_labs
@jb_labs 9 місяців тому
This is superb! I always wanted to tinker with decision-making algorithms in chess but it was always too daunting to make the whole game for me since I am just a newbie to c# This challenge will be a fun chance to test out and learn some new skills. Can't wait!
@avyayirde8554
@avyayirde8554 9 місяців тому
Im giddy with excitement!! this should be super fun!!
@flofdev
@flofdev 9 місяців тому
Thank you so much, this will be a fun challange to learn more about programming.
@tempo5366
@tempo5366 9 місяців тому
Good thing you gave us so much time. I spent about 10 minutes on the project, then got side tracked for the rest of the day while creating a WPF application to display the current token counter.
@unflexian
@unflexian 9 місяців тому
adhd twins
@user-dh8oi2mk4f
@user-dh8oi2mk4f 9 місяців тому
But it already shows the token count?
@tempo5366
@tempo5366 9 місяців тому
@@user-dh8oi2mk4f Sure, most time went into very unnecessary optimisations :D
@yassinesafraoui
@yassinesafraoui 9 місяців тому
Thanks for the very great initiative! May the odds be with the best
@lemz_explanation
@lemz_explanation 9 місяців тому
this is such a cool idea! since i now have summer break, i may be able to participate in this challenge. im hoping to see really interesting implementations by other people.
@NaCl1252
@NaCl1252 9 місяців тому
This looks awesome, I'll get started right away. Good luck y'all :)
@superturkey2458
@superturkey2458 3 місяці тому
I was too late, but had fun making a bot nonetheless! Thanks for the Challenge! You're my programming hero!
@faqeerhasnain
@faqeerhasnain 9 місяців тому
Just want to say, I love you sebastian, You are an inspiration.
@danielsantiagoaguilatorres9973
@danielsantiagoaguilatorres9973 9 місяців тому
Cool challlenge! I've been wanting to dabble into chess engines for a while, might as well give this one a try 😄 Thanks for all your hard work!
@pedro8341
@pedro8341 9 місяців тому
Simply incredible, this is the best programming and community channel I've ever seen, what channel does a coding challenge this way??? A lot of inspiration to my projects come from this guy. Good luck to everyone, and good work, Sebastian!! :D
@peterszilvasi752
@peterszilvasi752 9 місяців тому
We are incredibly lucky to have Sebastian alive at our time!
@pedro8341
@pedro8341 9 місяців тому
@@peterszilvasi752 he is our savior XD
@highchair208
@highchair208 9 місяців тому
I love this. I'll definitely be giving it a go as much as I am able!
@PeonyNopes
@PeonyNopes 9 місяців тому
This sounds like a really cool challenge. I'd participate if I wasnt on vacation and C# was my cup of tea. I wish everyone whos taking part luck and am really excited to see what people come up with. Also, theres a 99.9% chance that someone will do some sneaky (or not so sneaky) shenanigans.
@user-dh8oi2mk4f
@user-dh8oi2mk4f 9 місяців тому
Does your vacation extend all the way to October 1st? That's the deadline
@PeonyNopes
@PeonyNopes 9 місяців тому
@@user-dh8oi2mk4f No but Id have to learn C# which I prefer not to.
@JordanMetroidManiac
@JordanMetroidManiac 9 місяців тому
@@PeonyNopesC# isn’t that hard to learn, and you’d only need the basics since you wouldn’t be working with super specific things in this competition. C# is basically Java but with a lot of extra features (most of which are unnecessary and IMHO poorly designed, such as the delegate system). System.Linq kind of Pythonizes C#, too, so it can be really fun to use.
@PeonyNopes
@PeonyNopes 9 місяців тому
@@JordanMetroidManiac It's not that I think C# is hard. It's that: a) I am stupid. b) All the C# dev tools have to be complicated and hard to use ;~;. c) If the syntax highlighting isn't just right I get overloaded and worst case physically sick. I have my own conventions for the languages I normally use to well, prevent that from happening, which does include violating syntax conventions sometimes and figuring that out for a language with so much "unnecessary syntax" sounds like a pain.
@JordanMetroidManiac
@JordanMetroidManiac 9 місяців тому
@@PeonyNopes Ah, okay. If you code at all, then you couldn’t be stupid 😂 You’re definitely smart enough to grasp the basics of C# because variable assignment, variable typing, loops, method signatures, object instantiation, and mathematical operations are all identical to Java in the syntax, and Java is known to be a high-level object-oriented language with standard syntax conventions. All the weird parts of C# were added later once C# already had all the features of Java. Microsoft initially designed C# to be equivalent to Java, but they still wanted it to be superior, in true capitalistic fashion.
@felixp535
@felixp535 9 місяців тому
I love these kind of games. There's a really neat game called Gladiabots, where you code your own bot and fight others. It's amazing. I remember playing Leek Wars at the time, I really loved it. I'll not be participating this time around because I feel like I would start with too much of a disadvantage not knowing the strategies (not a fan of chess, I barely know the rules)... I hope next time we'll have a brand new game so everyone starts with zero prior knowledge! In the meantime, good luck everyone! Can't wait to see the results!
@justaguynotamanyouwouldkno2207
@justaguynotamanyouwouldkno2207 9 місяців тому
If you don't want to, you don't have to, but there is lots of documentation for chess coding, which can help a lot. I'd recommend giving it a try anyway, and seeing how well you do :)
@odomobo
@odomobo 9 місяців тому
I haven't played in a few years, but gladiabots is awesome!
@Prometheus4096
@Prometheus4096 3 місяці тому
I actually had this game idea a long time ago. Like BattleBots, but as a video game, and you code how it behaves as well. Funny that there are now several games with this idea. Pretty sure there were none when I first thought about it.
@amaryllis0
@amaryllis0 9 місяців тому
This seems really fun! Recently did the GMTK game jam so I've got an appetite for making crappy attempts at programming challenges :P
@ImpossibumPlays
@ImpossibumPlays 9 місяців тому
I love the idea of keeping things simpler with the token counter; it does a lot to lower the bar of entry for both beginners and the lazier amongst us. :)
@remydamiani2272
@remydamiani2272 9 місяців тому
Its a double edged sword though. Making a very good bot in a few, efficient lines is gonna be really hard
@AgnaktoreX
@AgnaktoreX 7 місяців тому
Im a bit late but I will join the challenge now and I really look forwar for your result video :D
@ohiasdxfcghbljokasdjhnfvaw4ehr
@ohiasdxfcghbljokasdjhnfvaw4ehr 9 місяців тому
this is an amazing idea, cant wait for the tournament
@Mrsourcier94
@Mrsourcier94 9 місяців тому
Really like the limitations you've thought of ! At first I was thinking it didn't seem to interesting if some people would just basically reimplements stockfish but now I'm really curious how everyone will approach the challenge et seriously considering to give it a go !
@hudsonfernandes6171
@hudsonfernandes6171 9 місяців тому
Excited to see what comes of this challenge. If you run a second round, I’d give a shoutout to the hexagonal chess in CGP Grey’s recent vid. It feels enough like chess to make normal approaches translatable, but different enough to spur novel thinking
@AIAdev
@AIAdev 9 місяців тому
Very cool idea! I love the creativity coming out of game dev YT RN
@poweredbygeeko
@poweredbygeeko 8 місяців тому
This is such a cool challenge. I wish I could actually play chess to participate LOL. Cool little challenge though!
@Rubyboat
@Rubyboat 9 місяців тому
I can't wait to see all of the other creative solutions!
@thebearnado4256
@thebearnado4256 9 місяців тому
Gonna try this out and see what I can make. It’s gonna be my first programming challenge but I’m looking forward to what I end up being able to make.
@nikitademodov3446
@nikitademodov3446 9 місяців тому
This is incredible! Will definitely participate!
@alexandrebellanger9646
@alexandrebellanger9646 9 місяців тому
Thank you for making this ! It will be very fun :D
@austinowensby9192
@austinowensby9192 9 місяців тому
I’m excited! I have no expectation of being competitive, but I’ll enjoy the challenge!
@lythd
@lythd 9 місяців тому
YES! i was so excited seeing the community post
@bjarnes.4423
@bjarnes.4423 9 місяців тому
This will be fun for summer break, haven't coded in a few years but I love your videos and would like to try again. Although tbh I didn't find the chess videos that good compared to videos like procedural generation or portals.
@wcvikingdude
@wcvikingdude 9 місяців тому
Can't wait to get started! I've been wanting to try a chess bot
@dinophage
@dinophage 9 місяців тому
What a great idea! I love this. Can't wait to play with it.
@AlexTuduran
@AlexTuduran 9 місяців тому
This reminds me of Robocode, a Java tanks coding challenge few many years ago where you would deploy a jar file in a Java program that would load your bot and made it play with other bots. There were tons of strategies discussed, lots of submission sections. I'm really glad someone revived the concept.
@percy4043
@percy4043 6 місяців тому
Your videos serve as such a breath of fresh air compared to the average youtuber yelling into the microphone for 5 minutes at speeds that raise the viewers heart rate. An island of calm and interesting projects. Thank you, Sebastian.
@coocanoot1
@coocanoot1 9 місяців тому
I don't know a damn thing about code but I still think this is super cool and a fun idea. I can't wait to see what comes of it! My appreciation for Sebastian Lague grows ever further; despite my not knowing shit my dude, not a fuck!
@wades39
@wades39 9 місяців тому
Awesome! This'll be a fun way to dip back into C# and start learning about chess bots.
@dgsdf9749
@dgsdf9749 9 місяців тому
Looks like an amazing idea! can't wait to participate.
@PureAsbestos
@PureAsbestos 9 місяців тому
This seems like a lot of fun. Can't wait to see what people come up with. Might even participate myself...
@bishop6308
@bishop6308 9 місяців тому
Ty for giving me something to do over summer break
@ayushsagar8074
@ayushsagar8074 9 місяців тому
This seems like a fun challenge, I know I def won't do well but it'll be fun to still try!
@geleerd2117
@geleerd2117 9 місяців тому
I have been looking forward to this!
@nitroflap
@nitroflap 9 місяців тому
Watching amazing game videos and being able to participate? Yes please! Haven't had much experience with C# tho but now I might have a reason to learn it.
@alexryu8467
@alexryu8467 9 місяців тому
This sounds amazing! I'm a CS student and not that familiar with C Sharp but I will participate for sure!
@SpencerYonce
@SpencerYonce 9 місяців тому
This actually sounds like a blast
@pal181
@pal181 9 місяців тому
Can't wait to see the results!!!
@newplace2frown
@newplace2frown 9 місяців тому
Never tried a programming challenge before so I'll probably fail hard at this, but I have a couple tricks up my sleeve so I'm excited!
@asseenontv247
@asseenontv247 9 місяців тому
I have too much studying to do for a certification to participate, but I wish the best of luck to all the contestants and i look forward to seeing the results!
@declspec
@declspec 9 місяців тому
This is actually really cool, great idea!
@nathanandrews8048
@nathanandrews8048 9 місяців тому
This is so cool! I’m totally gonna participate
@gala_vs
@gala_vs 9 місяців тому
Lessss gooooo, exams over on 1 aug, just what i needed, GLHF everyone ❤
@wivest-yt
@wivest-yt 9 місяців тому
looks like a game jam, really encourages me to participate!
I Ran a Chess Programming Tournament, Here's How it Went!
1:18:42
Sebastian Lague
Переглядів 493 тис.
The purest coding style, where bugs are near impossible
10:25
Coderized
Переглядів 821 тис.
Protect The Yacht, Keep It!
15:08
MrBeast
Переглядів 31 млн
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 31 млн
how NASA writes space-proof code
6:03
Low Level Learning
Переглядів 2 млн
I Made a 32-bit Computer Inside Terraria
15:26
From Scratch
Переглядів 3,1 млн
I Created a (terrible) Video Game Console
9:21
Sebastian Lague
Переглядів 2,4 млн
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Переглядів 2,3 млн
Gotham vs. Gotham-Bot: Can I Beat My AI Clone?
35:39
GothamChess
Переглядів 8 млн
Coding Adventure: Ray Tracing
37:58
Sebastian Lague
Переглядів 1,1 млн
Can THIS win Sebastian Lague's Chess challenge?
10:11
Game Tech Explained
Переглядів 196 тис.
How Minecraft ACTUALLY Works 💎⛏️
46:02
Alan Zucconi
Переглядів 1,3 млн
How principled coders outperform the competition
11:11
Coderized
Переглядів 1,5 млн
Мокрые шутки | Gazan и POLI
0:21
Gazan
Переглядів 2,2 млн
Що рятує українців від похмілля?😁 | #НовийКанал #ЄПитання
0:53
єПитання з Лесею Нікітюк
Переглядів 344 тис.
Nika wanted to find a best friend, but... #cat #cats
0:21
Princess Nika cat
Переглядів 15 млн
На самом деле смерть - это.. #фильм #сериал
0:59
Вічна і світла пам'ять Герою 🙏
0:12
Українські ТікТок-Війська 🇺🇦
Переглядів 600 тис.