Can THIS win Sebastian Lague's Chess challenge?

  Рет қаралды 204,744

Game Tech Explained

Game Tech Explained

Күн бұрын

My contribution to Sebastian Lague's 2023 Chess bot programming competition. It looks positively dashing. But can it win?
UPDATE VIDEO: • Video
GitHub repo containing both bots mentioned in the video: github.com/Gam...
A massive thanks to Sebastian for hosting this competition, and for his videos. You rock!
Creative Commons assets:
"Chess" (skfb.ly/6uVLu) by xnicrox is licensed under Creative Commons Attribution (creativecommons....
"Chess" (skfb.ly/oGrOq) by YarikLegendary is licensed under Creative Commons Attribution (creativecommons....

Пікірлер: 448
@pcoridan
@pcoridan Жыл бұрын
That code needs to be printed onto a shirt! Awesome looking
@gametechexplained
@gametechexplained Жыл бұрын
I like the idea!
@alicewonder259
@alicewonder259 Жыл бұрын
Yessssssss
@loodinek
@loodinek Жыл бұрын
I would buy that shirt 😊
@HaphazardousSpace
@HaphazardousSpace Жыл бұрын
True...
@Caxaho
@Caxaho Жыл бұрын
@@gametechexplained You have 1 guaranteed purchase right here if you do!
@legendgames128
@legendgames128 Жыл бұрын
Lol, the challenge wanted to promote readable small chess bots, but you managed to make it infeasibly readable lmao.
@gametechexplained
@gametechexplained Жыл бұрын
Well, I focused on small ;) There's a more readable version of the code on my GitHub, but it's not the prettiest code ever written either
@legendgames128
@legendgames128 Жыл бұрын
@@gametechexplained Lol. Lmao. At least you have a translation for what that pawn of source code means out there somewhere. The important thing is that it works, such code is how Terraria runs. It ain't pretty, but it's practical.
@user-dh8oi2mk4f
@user-dh8oi2mk4f Жыл бұрын
The challenge doesn’t promote readable code, it promotes readable names. There are plenty of other bs tricks to save tokens
@yanikb.1312
@yanikb.1312 Жыл бұрын
When you don't want fast or efficient code, but space-efficient xd I hope someone makes code so optimised that it could get mistaken for obfuscated code.
@saihajmann6622
@saihajmann6622 Жыл бұрын
You think I made readable code for the challenge? I barely remember what half of it does.
@Luca_5425
@Luca_5425 Жыл бұрын
Really cool video! Well edited, nice commentary, overall a great piece of youtube content!! Commenting for the algorithm!
@gametechexplained
@gametechexplained Жыл бұрын
Much appreciated!
@snk-js
@snk-js Жыл бұрын
yes, I hope more extremely experienced people start to make content
@noroy-afk
@noroy-afk Жыл бұрын
nice video man. good commentary / narrating, video length pretty nice and good little flow for the edit. keep this up, you will grow in no time 👍
@gametechexplained
@gametechexplained Жыл бұрын
Thank you for your kind words!
@OneOverPi
@OneOverPi Жыл бұрын
You should upload a video of your bot playing itself, stockfish, or other bots. Really cool video, can't wait to see how well your bot scores in the end! :)
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! I'll think about a video like that. I had it play stockfish and Sebastian's bot from his videos, and it lost pretty decisively to both. Can't wait either!
@Geosquare8128
@Geosquare8128 Жыл бұрын
funny to see how optimizing token count distorts code into the least readable garbage possible (respectfully) lmao, great video
@gametechexplained
@gametechexplained Жыл бұрын
Thank you, I take that as a compliment
@heavyfeather2533
@heavyfeather2533 Жыл бұрын
Yooo, it's a pleasant surprise to see you here. I hope you're enjoying life!
@DarkPlaysThings
@DarkPlaysThings 2 ай бұрын
You can have readable code and you can have short code. There isn't a big intersection between the two
@maxniederman9411
@maxniederman9411 Жыл бұрын
Nice video, will definitely look forward to future ones.
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@fdb-js5uh
@fdb-js5uh Жыл бұрын
In modern versions of C# you can remove explicit variable type in stackalloc by wrapping it in (), like var smth = (stackalloc Type[10]); will be of type Span instead of default Type* pointer type.
@gametechexplained
@gametechexplained Жыл бұрын
Nice! I did not know this! Always great to learn new things
@JottHa
@JottHa Жыл бұрын
As Luke from LMG just said on the WAN show, if you make a good video the algorithm will pick it up and show it to people. You made a fantastic video and it showed up for me!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! I am a bit overwhelmed tbh, I expected much less viewers
@dot.4069
@dot.4069 Жыл бұрын
Amazing video, looking forwarding to seeing more videos from you!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@donaldklopper
@donaldklopper Жыл бұрын
Brilliant. Can't wait to hear from Sebastian.
@gametechexplained
@gametechexplained Жыл бұрын
Same hear! I think it'll take a bit of time. Just running those matches must take forever, unless he gets a bunch of PCs from somewhere
@Dr-Zed
@Dr-Zed Жыл бұрын
I'm always so impressed by source code formatted to be ASCII art
@gametechexplained
@gametechexplained Жыл бұрын
Thank you. You have probably seen that donut-shaped code, which was a huge inspiration
@yajusgakhar6969
@yajusgakhar6969 Жыл бұрын
@@gametechexplainedI was thinking that must be the reference/idea behind it 😂
@RoboticusMusic
@RoboticusMusic Жыл бұрын
Which language(s) are best suited (most flexible) for this style of ASCII art as code? @@gametechexplained
@EventsKiosk
@EventsKiosk 9 ай бұрын
Is it ASCII if it’s just a silhouette?
@liutaurasgaidamavicius1379
@liutaurasgaidamavicius1379 Жыл бұрын
Great video! With this quality you will be able to go full-time in no-time 😈
@gametechexplained
@gametechexplained Жыл бұрын
I hope so!
@Rkcuddles
@Rkcuddles Жыл бұрын
This was great! Thanks for taking the time to edit and share your experience. Fascinating challenge!
@123gostly
@123gostly Жыл бұрын
Loved it! Thanks for sharing in this nice video format.
@gametechexplained
@gametechexplained Жыл бұрын
Glad you enjoyed it!
@Eljay_Kay
@Eljay_Kay Жыл бұрын
Excellent video! Looking forward to seeing your bot in competition
@gametechexplained
@gametechexplained Жыл бұрын
Thank you, definitely looking forward, too!
@eddielally2045
@eddielally2045 Жыл бұрын
great video, hope it gains you some recognition. The graphics were incredible
@gametechexplained
@gametechexplained Жыл бұрын
Much appreciated!
@Vanawy
@Vanawy Жыл бұрын
Awesome content! Good luck with competition :)
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@Gunbudder
@Gunbudder Жыл бұрын
if all your floats have similar magnitudes, its likely that scaled integers can get you much more accurate values. you can do a little analysis and see how many bits are "wasted" in your floats using some math or even just doing bitwise comparisons on the IEE 754 singles.
@gametechexplained
@gametechexplained Жыл бұрын
Yes, that is a good idea, too. Not sure about the network weights' range, but there are techniques to ensure weights stay reasonably small in absolute value (which I did not use for my network). They are halfs, by the way, not singles, so they only use 2 byte, compared to a 4 byte single. But yes, it is possible that scaled integers would have allowed me to go smaller / or better use the bits I have
@JonasWindey
@JonasWindey Жыл бұрын
this is insane, how can you only have 17 subs???
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! I just started making videos this summer. This is only my third video ever. Really awesome to see people enjoy it. Honestly happy about every single view at this point
@snowfloofcathug
@snowfloofcathug Жыл бұрын
Good news!
@partlysunny7214
@partlysunny7214 Жыл бұрын
Hugely underrated channel! I love the way you explain your process quickly but simply. Keep it up!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you, I am planning to!
@Meodoc
@Meodoc Жыл бұрын
Great video! Definitely will stay around for more awesome stuff!
@gametechexplained
@gametechexplained Жыл бұрын
Awesome thank you!
@robproductionsgames
@robproductionsgames Жыл бұрын
Nice work! I definitely struggled with this challenge and my bot used some… “unique” heuristics as opposed to your approach lol but I’m curious to see the results! Thanks for the explanations!
@gametechexplained
@gametechexplained Жыл бұрын
Looking forward to seeing how your bot performs!
@Greathelloboy
@Greathelloboy Жыл бұрын
i predict that this video will blow up its very well made
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! I really hope you are right
@baguettefish
@baguettefish Жыл бұрын
It definitely will
@theforeskinsnatcher373
@theforeskinsnatcher373 Жыл бұрын
definitely keep us updated!
@gametechexplained
@gametechexplained Жыл бұрын
Will do!!
@ccoodduu
@ccoodduu Жыл бұрын
Interesting to see your thought process, great video!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@imgajeed
@imgajeed Жыл бұрын
How did you do the animations at 6:20 with the 3D boards? They are really awesome!
@gametechexplained
@gametechexplained Жыл бұрын
Those are made in Blender (Cycles Renderer). Most of the action happens in Blender's node-based procedural tool, Geometry Nodes (changing color, moving up and down, adding the text for both the score and the little a1, a2, etc.) Each of the boards has an invisible "empty" object, and whose Y-coordinate controls how much the board is in the "points" state (moved up/down, with color and text showing). So I only have to animate that single invisible object for the transition.
@imgajeed
@imgajeed Жыл бұрын
@@gametechexplained Damn, I think I should start learning Blender's Geometry Nodes XD. (Actually I wanted to do it but haven't found a good time since…)
@porknite
@porknite Жыл бұрын
@@gametechexplained u should've done more with them, makes ur videos seem way more polished. I thought it was stock footage after u went back to a screen with a default font and badly drawn arrows.
@gametechexplained
@gametechexplained Жыл бұрын
​@@porknite yes, you're probably right. Making these takes me a lot of time, hopefully I'll be able to include more footage like this as I get better as this whole thing
@wazawoo
@wazawoo Жыл бұрын
@@gametechexplaineddon’t listen to this foul pumpkin who is very much not in the Halloween spirit. This whole video was excellent. Animations were next level though.
@TeamDman
@TeamDman Жыл бұрын
Damn nice video, I love the rendered shots
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@hazzabro3226
@hazzabro3226 Жыл бұрын
Great video man!
@gametechexplained
@gametechexplained Жыл бұрын
Appreciate it!
@qoobes
@qoobes Жыл бұрын
Amazing, need more people like you on youtube! Keep it up! 😁
@gametechexplained
@gametechexplained Жыл бұрын
Wow, thank you!
@theophilewallet7795
@theophilewallet7795 Жыл бұрын
Very good vidéo 👍, hope your channel grows, you already have one international subscriber (French). 😉
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! Awesome to hear that people from around enjoyed my video! Hoping to see you around!
@lusiaa_
@lusiaa_ Жыл бұрын
Such a nicely made video, I'm so glad it got recommended to me. Subscribed!
@DjVortex-w
@DjVortex-w Жыл бұрын
Limiting the program to a number of source code "tokens" is perilous if you don't also limit the length of such a token. Ostensibly a string literal is one single token, so you could have a 10-megabyte string literal containing whatever you want, and as long as you can somehow use it to execute an algorithm you can do whatever you want.
@simonelungarella9000
@simonelungarella9000 Жыл бұрын
If you check the rules you'll see that this possibility has been denied by limiting namespaces and methods that are allowed to use
@DjVortex-w
@DjVortex-w Жыл бұрын
@@simonelungarella9000 Do the rules limit the length of string literals?
@simonelungarella9000
@simonelungarella9000 Жыл бұрын
@@DjVortex-w I don't think so but you can read the following: "You may not store data inside the name of a variable/function/class etc (to be extracted with nameof(), GetType().ToString(), Environment.StackTrace and so on)".
@thesfreader3068
@thesfreader3068 Жыл бұрын
@@DjVortex-w yes
@user-zz6fk8bc8u
@user-zz6fk8bc8u Жыл бұрын
@@DjVortex-w no but in strings every character counts as a token, so no free lunch there.
@cleo__cleo9227
@cleo__cleo9227 Жыл бұрын
very cool video. good luck!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@sanderclaes4560
@sanderclaes4560 Жыл бұрын
Really interesting video! I've been searching for content like this on youtube for a while .
@yodazen6319
@yodazen6319 Жыл бұрын
Very entertaining !!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@lluiscerda2027
@lluiscerda2027 Жыл бұрын
Amazing video! Nice work!
@cacaboss227
@cacaboss227 Жыл бұрын
I thoroughly enjoyed your video!
@gametechexplained
@gametechexplained Жыл бұрын
I'm so glad!
@squdioodellover2589
@squdioodellover2589 Жыл бұрын
Loved the piece weight visualisation :)
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@Pantheos
@Pantheos Жыл бұрын
Really cool ideas, your bot is better than mine for sure :D Good luck!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you, and good luck, too. Looking forward to seeing how our bots will do
@varus4827
@varus4827 Жыл бұрын
incredible video! amazing animations aswell
@gametechexplained
@gametechexplained Жыл бұрын
Thanks a ton!
@shlaps9161
@shlaps9161 Жыл бұрын
subbed, amazing work!!!
@gametechexplained
@gametechexplained Жыл бұрын
Much appreciated!
@kvktus38
@kvktus38 Жыл бұрын
Amazing Video man keep up the good work 🎉
@gametechexplained
@gametechexplained Жыл бұрын
Thanks! Will do!
@312ingsscripts7
@312ingsscripts7 Жыл бұрын
im so glad i stumbled upon this channel
@harriehausenman8623
@harriehausenman8623 Жыл бұрын
Awesome stuff! 🤗
@minuskelvin3619
@minuskelvin3619 Жыл бұрын
I'm curious as to what the neural network architecture for your first attempt was? With your 4-weights-per-token packing strategy, that's an upper bound of 4096 weights, so it'd have to be pretty small. With that kind of constraint, a standard network architecture would have capped out around 5 hidden layer neurons, which wouldn't have been enough to be any good.
@gametechexplained
@gametechexplained Жыл бұрын
I use 40 features as input, and 3 hidden layers of 12 neurons each. In my experiments, I tried various sizes up to 8 hidden layers and 32 neurons each with 54 features as input, and the loss was not much lower than the 3x12 setup. I think the main issue is using features as input rather than the full chess board, because we already loose a lot of information there. However, using one 8 by 8 set of inputs per each of the 12 piece types the way many papers seem to do it would mean max out our tokens with a single layer network already.
@minuskelvin3619
@minuskelvin3619 Жыл бұрын
@@gametechexplained What were the 40 features?
@user-dh8oi2mk4f
@user-dh8oi2mk4f Жыл бұрын
Hey, it's the guy who chesses boys
@symmetricpositivedefinite
@symmetricpositivedefinite Жыл бұрын
Nice work!!
@gametechexplained
@gametechexplained Жыл бұрын
Thanks!
@FlyGamingChannel
@FlyGamingChannel Жыл бұрын
Great video. Subbed and looking forward to your next upload.
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@petrblue
@petrblue Жыл бұрын
Great job!
@gametechexplained
@gametechexplained Жыл бұрын
Thanks!
@rainestorme4057
@rainestorme4057 Жыл бұрын
Nice video, doing all of the things for the algorithm for you
@gametechexplained
@gametechexplained Жыл бұрын
Thanks for that!
@BittermanAndy
@BittermanAndy Жыл бұрын
Excellent! While I never got around to completing (or even doing very much work on) my bot for the competition, I agreed that trying to make a "good bot" is a dead end... nobody's going to make anything that will beat Stockfish, so what's the point? But making something clever / creative / visually interesting / code that's shaped like a chess piece (!) is much more interesting. Well done, and good luck in the competition!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you so much!
@ch4rlie855
@ch4rlie855 Жыл бұрын
8:47 absolutely killed me bro. you earned a sub, great vid!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@justinshin6867
@justinshin6867 Жыл бұрын
Loved this video!
@antonsimkin
@antonsimkin Жыл бұрын
Great videos, subscribed
@gametechexplained
@gametechexplained Жыл бұрын
Welcome aboard!
@lythd
@lythd Жыл бұрын
wow i absolutely love the aesthetic code in a pawn at the end! very good video! now im a bit nervous about my entry if u r just trying to be in the top half lmao
@Pope_Protein
@Pope_Protein Жыл бұрын
Great video definitely earnt my subscription and all those to come
@gametechexplained
@gametechexplained Жыл бұрын
Thank you, and welcome on board
@Pope_Protein
@Pope_Protein Жыл бұрын
@@gametechexplained I'll definitely be watching in future, remember me before you become famous 🤣
@cyb3ristic
@cyb3ristic Жыл бұрын
great video man :)
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@dricimourad3544
@dricimourad3544 Жыл бұрын
Amazing video , keep going
@gametechexplained
@gametechexplained Жыл бұрын
Thank you, I will
@RRPLD_Ambassador
@RRPLD_Ambassador Жыл бұрын
Where can I read about training a chess neural network?
@General12th
@General12th Жыл бұрын
This is amazing!
@thenotbaldguy4263
@thenotbaldguy4263 Жыл бұрын
actually underrated channel, the algo needs to know
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@ReinkeDK
@ReinkeDK Жыл бұрын
Amazing work :)
@Julzaa
@Julzaa Жыл бұрын
You earned a subscriber!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@vyldim3401
@vyldim3401 Жыл бұрын
I sooooo wanted to join this man why did I have to be busy and sick
@gametechexplained
@gametechexplained Жыл бұрын
Oh, that is too bad
@Blackfire123creation
@Blackfire123creation Жыл бұрын
Very engaging Video! I'm curious to see how you bot does in the competition.
@gotMylky
@gotMylky Жыл бұрын
Excellent work, earned a sub :)
@gametechexplained
@gametechexplained Жыл бұрын
Awesome, thank you!
@artemon121
@artemon121 Жыл бұрын
Awesome video!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@sabitastisch9228
@sabitastisch9228 Жыл бұрын
I absolutely love it! :D
@gametechexplained
@gametechexplained Жыл бұрын
I'm glad you like it
@shadowskullG
@shadowskullG Жыл бұрын
I liked this video, well made and good documentary. Hope you win!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@nebulaeedoto
@nebulaeedoto Жыл бұрын
wow, i'm impressed with video quality
@gametechexplained
@gametechexplained Жыл бұрын
Happy to hear
@Koutsie
@Koutsie Жыл бұрын
nice video, well edited too and about a interesting topic! subscribed!🎉
@gametechexplained
@gametechexplained Жыл бұрын
Thank you and welcome
@speedg
@speedg Жыл бұрын
cool video, nice throwback to the donut shaped donut code
@gametechexplained
@gametechexplained Жыл бұрын
Yes, that was definitely the main inspiration in terms of formatting
@worldadmin9811
@worldadmin9811 Жыл бұрын
excellent work
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! Cheers!
@mr_waffles_the_dog
@mr_waffles_the_dog Жыл бұрын
My thought is whether you can save more tokens by have the initializers expand out the compressed boards. The initializers would become a bit bigger, but you'd save tokens on access
@gametechexplained
@gametechexplained Жыл бұрын
I am not sure I fully understand... What do you mean by expanding out the compressed boards?
@maxfarouk3407
@maxfarouk3407 Жыл бұрын
Very cool man. When i saw sebastions video i got quite peaked. I havent followed that series though as i mostly followed his unity stuff and i feel more comfortable in python. Youre video is great and its really cool what more experienced programers are capable of. Its onspiring to know that im not so far from stuff lole this.
@gametechexplained
@gametechexplained Жыл бұрын
Great to hear! I did not know anything about Chess AI before watching his videos either. One thing I really love about his channel is that he can make you feel like you truly understand the all the basics of an entirely new thing in about 45 minutes
@maxfarouk3407
@maxfarouk3407 Жыл бұрын
Agreed@@gametechexplained
@pegrat
@pegrat Жыл бұрын
this is AWESOME!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@SuperGamersgames
@SuperGamersgames Жыл бұрын
Heh, that last touch was amazing. :P
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@trueberryless
@trueberryless Жыл бұрын
Dude, I'm so hyped how insane other people went with this challenge? I didn't have that much time and brain sells as you, so I hope my bot is top 0.001% of submissions... xD
@gametechexplained
@gametechexplained Жыл бұрын
Looking forward to seeing how your bot does
@moxiwolf
@moxiwolf Жыл бұрын
I'm going to quote my TA after showing her a code I made while on double the recommended daily does of NyQuil: "what have you done?"
@gametechexplained
@gametechexplained Жыл бұрын
😂
@JirkaKlimes_
@JirkaKlimes_ Жыл бұрын
This video was awesome! Thanks. (+sub)
@gametechexplained
@gametechexplained Жыл бұрын
Awesome, thank you!
@Bigzthegreat
@Bigzthegreat Жыл бұрын
KZbin is suggesting smaller creators that are high quality, and i love it
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! Honestly, I am a bit overwhelmed with how many people watch this! I had ~200 views for my entire channel prior to this
@senorpizza
@senorpizza Жыл бұрын
For only 300 subs, the quality and amount of effort put in is amazing. Here before 1k 🎉
@gametechexplained
@gametechexplained Жыл бұрын
Thank you! Tbh it is still hard to believe it went past 1k now. I had 17 subs when posting this
@wChris_
@wChris_ Жыл бұрын
this just goes to show, that writing small code is not the same as writing good code. (as in readable, understandable and clean)
@gametechexplained
@gametechexplained Жыл бұрын
Yes, very much true!
@pseudo_goose
@pseudo_goose Жыл бұрын
I dont know much about C#, but if it has "bytestring" literals, you could use those to compess any table into just one token (or even combine all tables into one long string). Trade-off is that element access is more complex, not 100% sure that it's worth it
@gametechexplained
@gametechexplained Жыл бұрын
I should've probably mentioned this, but string literals cost one token per character
@pseudo_goose
@pseudo_goose Жыл бұрын
@@gametechexplained Dang, Sebastian thought of everything.
@user-dh8oi2mk4f
@user-dh8oi2mk4f Жыл бұрын
@@pseudo_goose Not really, there were a lot of people who submitted issues to github outlining these flaws in the initial challenge.
@vigigamehacker123
@vigigamehacker123 Жыл бұрын
Would love to see a video focused solely on building that first neural network
@gametechexplained
@gametechexplained Жыл бұрын
I thought about how much detail to add about that bot. But tbh making videos takes a lot of time for me, so I could not really go into detail about both. I might make a video about a different neural network project in the future
@norude
@norude Жыл бұрын
I really think that for you to leave the beeping in would be awesome.
@gametechexplained
@gametechexplained Жыл бұрын
Yeah, maybe I should have
@domasinkujur258
@domasinkujur258 Жыл бұрын
you know he is great at coding when his code indentation looks like the project thumbnail itself
@TheOriginalJohnDoe
@TheOriginalJohnDoe Жыл бұрын
1:27 I am studying AI myself in university and I love the idea of using half-precision with hex into a combined result, that's one of those things you get taught when studying AI by asking the question: "how can we make this faster?", lovely idea!
@febejo404
@febejo404 Жыл бұрын
Great video! Did you format you code into an image by hand or is that an extension?
@gametechexplained
@gametechexplained Жыл бұрын
I did it by hand. I used a small black and white picture as guidance. However, the footage in the video is actually not me hand-formatting, but it's a small script I wrote that does the changes more optimally and quickly, to generate a smoother video. The script got the hand-created final result as input and calculated the changes needed
@ersinbasaran
@ersinbasaran Жыл бұрын
@@gametechexplained that's even more impressive ❤
@masterboxer74
@masterboxer74 Жыл бұрын
Amazing animations 😮
@Maximxls
@Maximxls Жыл бұрын
very well made!
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@Aidiakapi
@Aidiakapi Жыл бұрын
If tokens are counted, why not just have one really big string literal containing all the data? It's one token, no matter how large it gets (unless it's an interpolated string).
@rutabega306
@rutabega306 Жыл бұрын
I wondered about this too, seems like one could serialize a massive NN this way
@gametechexplained
@gametechexplained Жыл бұрын
It's a good idea, but a string literal actually counts as one token per character in this competition. I probably should have mentioned that
@ConBomb
@ConBomb Жыл бұрын
Wow this was a great video. I also made a bot for the challenge but it was nowhere as good as yours.
@gametechexplained
@gametechexplained Жыл бұрын
Thank you, looking forward to seeing how your bot does!
@DreadKyller
@DreadKyller Жыл бұрын
One thing I don't see anyone saying is that you could have removed the static and readonly modifiers, not good practice but they are tokens and don't need to be static to make the code work. Also it may be a bit on the more iffy side but the tables could have been stored as strings that are then converted to bytes to possible save more as well, I don't know where the border of the spirit of the competition ends compared to the absolute limit of what can be done, because there are optimizations that likely wouldn't be within the spirit of the competition even if it's not against the rules of it, I don't know whether encoding data like that in a string would have crossed a line, unlike WarpRulez I'm not referring to encoding data and instructions in a string, just the table data, but still same debatability.
@sumongus
@sumongus Жыл бұрын
I was totally not expecting that reformat at 9:17, but it looks awesome nonetheless! (readability has left the chat)
@gametechexplained
@gametechexplained Жыл бұрын
Thank you!
@stellar4677
@stellar4677 Жыл бұрын
good video
@gametechexplained
@gametechexplained Жыл бұрын
Glad you enjoyed it
@valshaped
@valshaped 3 ай бұрын
I wonder, do C# strings allow byte indexing? You could pack entire tables as a single string literal if they do.
@OmateYayami
@OmateYayami Жыл бұрын
Is this new gen of programmers rediscovering demo scene in high level language? Reminds me of those music/graphic pack into tiny binaries. Younger folk who used cracks might recognize the music lol.
@gametechexplained
@gametechexplained Жыл бұрын
Yes, there's definitely a long history of these tricks!
@jansustar4565
@jansustar4565 Жыл бұрын
Aren't strings a single token? So you could have all the weights in a string formated with CSV and a splitter method to move it to the array. This way, you could have a neural net of almost arbitrary size inside. At least I think so.
@tisajokt7676
@tisajokt7676 Жыл бұрын
Strings unfortunately were counted as a special case to avoid this: each character counted as its own token. Also, the rules forbid you from storing an arbitrary amount of data in identifier names and retrieving them.
@wingdinggaster6737
@wingdinggaster6737 Жыл бұрын
You should independently rebuild this with a slightly higher token limit. Perhaps shape it like a knight/bishop
I Ran a Chess Programming Tournament, Here's How it Went!
1:18:42
Sebastian Lague
Рет қаралды 643 М.
I Made a Weird Chess AI from Scratch
6:38
nextProgram
Рет қаралды 293 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
I Made A Chess AI But In Only 1 File
17:34
Simply In Dev
Рет қаралды 25 М.
WorstFish: The Dumbest Chess Bot
17:09
GothamChess
Рет қаралды 1,4 МЛН
I Coded a Chess Engine in 7 Languages to test Performance!
25:07
Coding with Tom
Рет қаралды 14 М.
Can My Chat's Chess Bot Beat Mine? (Chatfish vs Lemonfish)
34:26
Green Lemon Games
Рет қаралды 32 М.
1,000,000 ELO CHESS BOT!!!
25:58
GothamChess
Рет қаралды 1 МЛН
Factorio teaches you software engineering, seriously.
21:27
Tony Zhu
Рет қаралды 2 МЛН
Coding Adventure: Chess
29:22
Sebastian Lague
Рет қаралды 3,9 МЛН
Chess, but the rules are cursed
31:48
Icely Puzzles
Рет қаралды 744 М.
I made my own chess bot (Part 1)
14:49
Data Time
Рет қаралды 13 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,6 МЛН