Coding Challenge Announcement: Tiny Chess Bots

Sdílet
Vložit
  • čas přidán 5. 06. 2024
  • 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
  • Zábava

Komentáře • 780

  • @SebastianLague
    @SebastianLague  Před 5 měsíci +8

    The challenge is now over -- thanks so much to everyone who took part! You can find the results video over here: czcams.com/video/Ne40a5LkK6A/video.htmlsi=xVjO6WsrSNLn_AAE

  • @Tepalus
    @Tepalus Před 10 měsíci +1607

    I may use this as my very FIRST programming challenge :D I gonna fail horribly, but it's gonna be fun. lol

    • @SebastianLague
      @SebastianLague  Před 10 měsíci +417

      Good luck! :)

    • @danielcreatd872
      @danielcreatd872 Před 10 měsíci +49

      @@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 Před 10 měsíci +69

      @@danielcreatd872knowing c++ will make c# much easier to pick up

    • @Peter_S_
      @Peter_S_ Před 10 měsíci +11

      No matter how it results, you will emerge the winner. Best wishes!

    • @Null-byte
      @Null-byte Před 10 měsíci +16

      @@danielcreatd872 C# is way easier. No pointers to begin with and a rather more intuitiv "standard library".

  • @SebastianLague
    @SebastianLague  Před 10 měsíci +506

    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 Před 10 měsíci

      What language is this? sorry im kind of new in IDEs and direct code

    • @whitemouse2460
      @whitemouse2460 Před 10 měsíci +4

      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 Před 10 měsíci +1

      Oh man I totally would have spent days wondering what was going wrong if I didn't check the comments here

    • @wildtom
      @wildtom Před 10 měsíci +5

      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 Před 10 měsíci

      sounds fun 😮

  • @theninjascientist689
    @theninjascientist689 Před 10 měsíci +192

    I love this tokenized variation on code golf because it encourages code that is creative but still readable!

    • @petersmythe6462
      @petersmythe6462 Před 10 měsíci +34

      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.

  • @b4ux1t3-tech
    @b4ux1t3-tech Před 10 měsíci +452

    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!

  • @yayl661
    @yayl661 Před 10 měsíci +353

    This will be a lot of fun! I wish everyone good luck!

  • @woudy7
    @woudy7 Před 10 měsíci +207

    Can't wait to participate in this and afterwards see what other people will make out of this!

  • @aryanbakshi6189
    @aryanbakshi6189 Před 10 měsíci +36

    Lesgoooo, was very excited when I saw this in the community post. Will start work on this soon

  • @5implekiw1
    @5implekiw1 Před 10 měsíci +75

    I'm so nervous about doing this since it's my first bot, but I think I'll love the challenge!
    Good luck everyone! 🍀❤

  • @tgpapy538
    @tgpapy538 Před 10 měsíci +26

    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  Před 10 měsíci +10

      Great, I’m happy to hear that! Good luck :)

  • @PeonyNopes
    @PeonyNopes Před 10 měsíci +28

    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 Před 10 měsíci +8

      Does your vacation extend all the way to October 1st? That's the deadline

    • @PeonyNopes
      @PeonyNopes Před 10 měsíci

      @@user-dh8oi2mk4f No but Id have to learn C# which I prefer not to.

    • @JordanMetroidManiac
      @JordanMetroidManiac Před 10 měsíci

      @@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 Před 10 měsíci

      @@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 Před 10 měsíci

      @@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.

  • @Geosquare8128
    @Geosquare8128 Před 10 měsíci +3

    Looking forward to giving this a try!

  • @tempo5366
    @tempo5366 Před 10 měsíci +3

    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 Před 10 měsíci +1

      adhd twins

    • @user-dh8oi2mk4f
      @user-dh8oi2mk4f Před 10 měsíci +1

      But it already shows the token count?

    • @tempo5366
      @tempo5366 Před 10 měsíci

      @@user-dh8oi2mk4f Sure, most time went into very unnecessary optimisations :D

  • @anneharsta6411
    @anneharsta6411 Před 10 měsíci +37

    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!

  • @felixp535
    @felixp535 Před 10 měsíci +36

    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 Před 10 měsíci +1

      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 Před 10 měsíci

      I haven't played in a few years, but gladiabots is awesome!

    • @Prometheus4096
      @Prometheus4096 Před 4 měsíci

      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.

  • @quarksandaces2398
    @quarksandaces2398 Před 10 měsíci +8

    I love the framework you gave us!
    This makes it so much easier for poeple with less expierience.

  • @SharpDressedBear
    @SharpDressedBear Před 10 měsíci +60

    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 Před 10 měsíci +2

      yeah i had a feeling that somehow someone would port stockfish to c# and dominate everyone else

  • @ImpossibumPlays
    @ImpossibumPlays Před 10 měsíci +13

    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 Před 10 měsíci +4

      Its a double edged sword though. Making a very good bot in a few, efficient lines is gonna be really hard

  • @Simon_Laserna
    @Simon_Laserna Před 10 měsíci +9

    Love this challenge idea! Incredible how smooth you have made it for everyone to participate. I really like that it encourages creativity!

  • @brieuclamassiaude-adressee5663
    @brieuclamassiaude-adressee5663 Před 10 měsíci +4

    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.

  • @FrohSim
    @FrohSim Před 10 měsíci +108

    Heck yeah! You could totally do complexity weight classes for bot vs bot tourneys. A bit like Robocode.

    • @user-dh8oi2mk4f
      @user-dh8oi2mk4f Před 10 měsíci +1

      What’s a complexity weight class?

    • @jacemonster5
      @jacemonster5 Před 10 měsíci +3

      @@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

  • @leviathan5792
    @leviathan5792 Před 10 měsíci +4

    I'm very excited to participate, and also see what everyone else comes up with! Thanks for hosting this event!

  • @Hesham45456
    @Hesham45456 Před 10 měsíci +2

    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.

  • @everton.colombo
    @everton.colombo Před 10 měsíci +2

    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!

  • @kennebro8538
    @kennebro8538 Před 10 měsíci +4

    This looks like a really fun coding challenge, Best of luck to everyone participating!

  • @theangry0077
    @theangry0077 Před 10 měsíci +1

    this is gonna be so fun, thanks a lot sebastian!!

  • @AgnaktoreX
    @AgnaktoreX Před 10 měsíci +4

    I was really unsure if I want to participate but the way you made that challenge up really encourages me to do it :D

  • @RGGaming940
    @RGGaming940 Před 10 měsíci +6

    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 Před 10 měsíci +1

    I got really excited even though I'm not into chess a lot. Hopes to see different challenges in the future!

  • @AlexVoxel
    @AlexVoxel Před 10 měsíci +1

    This sounds really fun, thank you for organizing it!

  • @hamzahgamedev
    @hamzahgamedev Před 10 měsíci

    Your videos have helped me so much in making my dream open world farming game.
    Thanks Sebastian for making these amazing videos.

  • @asMdl
    @asMdl Před 10 měsíci

    Excellent job as always Sebastian, well planned, clearly explained, clean and elegant details from the idea to the challenge kickoff video. 🤟

  • @goat5249
    @goat5249 Před 10 měsíci

    I just finished watching your other videos on chess. This is awesome!

  • @novemberbees8742
    @novemberbees8742 Před 10 měsíci

    been wanting to get into coding after watching your videos, and this seems like a fun motivation! interested to see what others create!

  • @skribblestyle
    @skribblestyle Před 10 měsíci +3

    Yessss. I hope this becomes a regular thing!

  • @vinish8311
    @vinish8311 Před 10 měsíci +2

    Your videos always leave me with a smile

  • @andriib9390
    @andriib9390 Před 10 měsíci

    Oh, this is great! I would really love to see more challenges like this!

  • @DoomerDGR8
    @DoomerDGR8 Před 10 měsíci

    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.

  • @Definitely_a_Fox
    @Definitely_a_Fox Před 10 měsíci +1

    "You're only allowed to use the following 5 namespaces, which eliminates some sneaky strategies such as scanning my hard drive for a copy of Stockfish, and launching that in the background to do the thinking for you."
    DAMNIT!!

  • @connorkeevill5262
    @connorkeevill5262 Před 10 měsíci

    Really looking forward to taking part! Thank you for putting this together :)

  • @Danerd100
    @Danerd100 Před 10 měsíci +2

    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

  • @Nimiath
    @Nimiath Před 10 měsíci

    This is such a cool idea! I am very hyped for the end result and will definitely give it a try myself.

  • @nico371
    @nico371 Před 10 měsíci

    This is going to be awesome! Never done anything like this but the size limitations gives me motivation!

  • @janikarkkainen3904
    @janikarkkainen3904 Před 10 měsíci +2

    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.

  • @flofdev
    @flofdev Před 10 měsíci +1

    Thank you so much, this will be a fun challange to learn more about programming.

  • @avyayirde8554
    @avyayirde8554 Před 10 měsíci

    Im giddy with excitement!!
    this should be super fun!!

  • @beastbomber2316
    @beastbomber2316 Před 10 měsíci

    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.

  • @oliverwooding2066
    @oliverwooding2066 Před 10 měsíci

    your last video convinced me to retry an old chess programming project, so i guess i’m obliged to take part in this 😅

  • @antivexium3892
    @antivexium3892 Před 10 měsíci +3

    I'm going to commit to participating in this! I love chess and coding and this is a excellent chance to work on both.

  • @keinerahnt123
    @keinerahnt123 Před 10 měsíci

    Excited to participate in the challenge. Thank you for setting up the project!

  • @wiechciu0
    @wiechciu0 Před 10 měsíci +1

    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 :)

  • @yassinesafraoui
    @yassinesafraoui Před 10 měsíci

    Thanks for the very great initiative! May the odds be with the best

  • @Cxntrxl
    @Cxntrxl Před 10 měsíci +2

    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!

  • @AIAdev
    @AIAdev Před 10 měsíci

    Very cool idea! I love the creativity coming out of game dev YT RN

  • @flash3621
    @flash3621 Před 10 měsíci

    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

  • @lythd
    @lythd Před 10 měsíci

    YES! i was so excited seeing the community post

  • @NaCl1252
    @NaCl1252 Před 10 měsíci

    This looks awesome, I'll get started right away. Good luck y'all :)

  • @axolteo
    @axolteo Před 10 měsíci +8

    This is literally perfect timing! I just finished a chess camp!

  • @CYON4D
    @CYON4D Před 8 měsíci +3

    Nice video by the way what are your thoughts about Unity's new policiy?

  • @arcturus1140
    @arcturus1140 Před 10 měsíci

    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.

  • @ohiasdxfcghbljokasdjhnfvaw4ehr

    this is an amazing idea, cant wait for the tournament

  • @highchair208
    @highchair208 Před 10 měsíci

    I love this. I'll definitely be giving it a go as much as I am able!

  • @faqeerhasnain
    @faqeerhasnain Před 10 měsíci +1

    Just want to say, I love you sebastian, You are an inspiration.

  • @dylanwolf358
    @dylanwolf358 Před 10 měsíci

    This is so much fun, please do more of those challenges ! 3:09

  • @alexandrebellanger9646
    @alexandrebellanger9646 Před 10 měsíci

    Thank you for making this ! It will be very fun :D

  • @geleerd2117
    @geleerd2117 Před 10 měsíci

    I have been looking forward to this!

  • @Rubyboat
    @Rubyboat Před 10 měsíci

    I can't wait to see all of the other creative solutions!

  • @jb_labs
    @jb_labs Před 10 měsíci

    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!

  • @percy4043
    @percy4043 Před 7 měsíci +1

    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.

  • @hudsonfernandes6171
    @hudsonfernandes6171 Před 10 měsíci

    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

  • @danielsantiagoaguilatorres9973

    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!

  • @austinowensby9192
    @austinowensby9192 Před 10 měsíci

    I’m excited!
    I have no expectation of being competitive, but I’ll enjoy the challenge!

  • @pal181
    @pal181 Před 10 měsíci

    Can't wait to see the results!!!

  • @lemz_explanation
    @lemz_explanation Před 10 měsíci

    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.

  • @bishop6308
    @bishop6308 Před 10 měsíci +1

    Ty for giving me something to do over summer break

  • @nikitademodov3446
    @nikitademodov3446 Před 10 měsíci

    This is incredible! Will definitely participate!

  • @dgsdf9749
    @dgsdf9749 Před 10 měsíci

    Looks like an amazing idea! can't wait to participate.

  • @dinophage
    @dinophage Před 10 měsíci

    What a great idea! I love this. Can't wait to play with it.

  • @pedro8341
    @pedro8341 Před 10 měsíci +17

    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 Před 10 měsíci +2

      We are incredibly lucky to have Sebastian alive at our time!

    • @pedro8341
      @pedro8341 Před 10 měsíci

      @@peterszilvasi752 he is our savior XD

  • @amaryllis0
    @amaryllis0 Před 10 měsíci +1

    This seems really fun! Recently did the GMTK game jam so I've got an appetite for making crappy attempts at programming challenges :P

  • @PureAsbestos
    @PureAsbestos Před 10 měsíci

    This seems like a lot of fun. Can't wait to see what people come up with. Might even participate myself...

  • @wx39
    @wx39 Před 10 měsíci

    Awesome! This'll be a fun way to dip back into C# and start learning about chess bots.

  • @superturkey2458
    @superturkey2458 Před 4 měsíci

    I was too late, but had fun making a bot nonetheless! Thanks for the Challenge! You're my programming hero!

  • @_daniel.w
    @_daniel.w Před 10 měsíci

    This is actually really cool, great idea!

  • @AlexTuduran
    @AlexTuduran Před 10 měsíci

    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.

  • @Realsify
    @Realsify Před 10 měsíci +4

    I saw the thumbnail and this challenge looks like it will be fire, but it's sad my coding knowledge is thinner than paper

  • @Mrsourcier94
    @Mrsourcier94 Před 10 měsíci +1

    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 !

  • @nathanandrews8048
    @nathanandrews8048 Před 10 měsíci

    This is so cool! I’m totally gonna participate

  • @AgnaktoreX
    @AgnaktoreX Před 8 měsíci +1

    Im a bit late but I will join the challenge now and I really look forwar for your result video :D

  • @legendgames128
    @legendgames128 Před 8 měsíci +1

    I did it. A last minute submission. "Good Bot Bad Bot (But Really, Both Are Terrible Bots, Also This In The Parenthesis Is Part Of The Name)" has joined the fray!

  • @hellium6613
    @hellium6613 Před 10 měsíci +1

    This is amazing, full stop.

  • @Silverrzz
    @Silverrzz Před 10 měsíci +1

    Earlyyy love everything you put out sebastian

  • @ZelenskyPlane
    @ZelenskyPlane Před 10 měsíci +5

    Im going to learn coding just to participate in this. Good luck all.

    • @courageouscuber9278
      @courageouscuber9278 Před 10 měsíci

      This is a pretty difficult coding challenge for somone just starting out, I hope you do well though!!!

  • @wcvikingdude
    @wcvikingdude Před 10 měsíci

    Can't wait to get started! I've been wanting to try a chess bot

  • @voodoo5191
    @voodoo5191 Před 10 měsíci

    I like how happy you sound in these videos :P

  • @thebearnado4256
    @thebearnado4256 Před 10 měsíci +1

    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.

  • @ayushsagar8074
    @ayushsagar8074 Před 10 měsíci

    This seems like a fun challenge, I know I def won't do well but it'll be fun to still try!

  • @kyyrozu
    @kyyrozu Před 10 měsíci

    This is amazing!

  • @bjarnes.4423
    @bjarnes.4423 Před 10 měsíci

    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.

  • @cheesecakenl1980
    @cheesecakenl1980 Před 10 měsíci

    OMG can this be its own thing? MOAR coding challenges please!