To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/TheCodingSloth. You’ll also get 20% off an annual premium subscription. Happy New Year Everyone! UPDATE: I've decided not to share the code because it'll ruin the game for regular players. HOWEVER, join the Infinite Craft Discord if you want help making your own version. discord.gg/NSMut3Wx3Y
@nobody_fear8 күн бұрын
@@kevinramy9463 there are plenty of free coding courses for beginners, don’t waste your money on a paid one
@prodigypro79336 күн бұрын
@@kevinramy9463 womp womp
@RayEye-h3m6 күн бұрын
no
@AOOA9265 күн бұрын
@@aIwaysorangefunction simulateDragAndDrop(element, startX, startY, targetX, targetY, steps = 10) { function triggerMouseEvent(target, eventType, clientX, clientY) { const event = new MouseEvent(eventType, { bubbles: true, cancelable: true, clientX, clientY, view: window, }); target.dispatchEvent(event); } console.log(`Start: (${startX}, ${startY}), Target: (${targetX}, ${targetY})`); // Start dragging triggerMouseEvent(element, "mousedown", startX, startY); // Gradual movement let currentX = startX; let currentY = startY; const deltaX = (targetX - startX) / steps; const deltaY = (targetY - startY) / steps; return new Promise((resolve) => { function moveMouse() { currentX += deltaX; currentY += deltaY; triggerMouseEvent(document, "mousemove", currentX, currentY); if ( Math.abs(currentX - targetX) < Math.abs(deltaX) || Math.abs(currentY - targetY) < Math.abs(deltaY) ) { // Drop the item at the target triggerMouseEvent(document, "mouseup", targetX, targetY); console.log("Drag-and-drop completed."); // Force final alignment element.style.position = "absolute"; element.style.left = `${targetX}px`; element.style.top = `${targetY}px`; resolve(); } else { requestAnimationFrame(moveMouse); } } requestAnimationFrame(moveMouse); }); } async function test() { const itemsRows = document.getElementsByClassName("items-row"); for (const row of itemsRows) { const items = row.getElementsByClassName("item"); const processedPairs = new Set(); // Reset on each test for (let i = 0; i < items.length; i++) { for (let j = 0; j < items.length; j++) { if (i !== j && !processedPairs.has(`${i}-${j}`)) { processedPairs.add(`${i}-${j}`); // Track processed pairs locally await processCombination(items[i], items[j], 500, 100); // Fixed target position } } } } } async function clickClearButton() { const clearBtn = document.getElementsByClassName("clear")[0]; if (clearBtn) { clearBtn.click(); console.log("Clear button clicked."); await new Promise((resolve) => setTimeout(resolve, 500)); // Wait for DOM to update } else { console.error("Clear button not found."); } } async function processCombination(firstItem, secondItem, targetX, targetY) { const firstRect = firstItem.getBoundingClientRect(); const secondRect = secondItem.getBoundingClientRect(); const firstStartX = firstRect.x + firstRect.width / 2; const firstStartY = firstRect.y + firstRect.height / 2; const secondStartX = secondRect.x + secondRect.width / 2; const secondStartY = secondRect.y + secondRect.height / 2; await simulateDragAndDrop(firstItem, firstStartX, firstStartY, targetX, targetY); await simulateDragAndDrop(secondItem, secondStartX, secondStartY, targetX, targetY); // Delay before clicking the clear button, to allow for any UI updates await new Promise((resolve) => setTimeout(resolve, 500)); await clickClearButton(); } // Run the test function await test();
@liamfarrar88615 күн бұрын
the invite is invalid
@altaccount6489 күн бұрын
4 years of computer science, turns to AI.
@sworatex16836 күн бұрын
Pretty sad...
@FluffyBloxYT-z5c5 күн бұрын
to be fair he do fix up some parts ai couldn't
@altaccount6485 күн бұрын
@FluffyBloxYT-z5c 💀right...
@xMartasowo5 күн бұрын
Yeah well thanks to ai i can also re create it >:)
@sworatex16834 күн бұрын
@FluffyBloxYT-z5c dude doesnt know any js basic checks to do upfront. Hes only a science dev who has never worked in this job. No experience in solving real world problems
@martine279 күн бұрын
Seeing a programmer use AI to beat a game made using AI makes me think the Unabomber was right
@FraudWhiteSpace9 күн бұрын
Should've named "finite craft"
@sulo4129 күн бұрын
im pretty sure non native english speakers dont even know what that word means. m e t o o
@Newb1eProgrammer9 күн бұрын
@@sulo412it means not infinite
@user-universalmaster.9 күн бұрын
@@sulo412it means possessing any classification of limitation to possess an culmination, a extremity.
@sulo4129 күн бұрын
@@user-universalmaster. its a joke😭
@WhiteHatThat9 күн бұрын
Agreed.
@Yosleco5 күн бұрын
This is why I can’t get any new discoveries in infinite craft
@mitchwranich22364 күн бұрын
I managed to get about 80 ND because I kept adding numbers to Pirates of the Caribbean
@scientiaestpotentia20073 күн бұрын
I got Space Cotgasm and Crasm a few days ago
@Silverlight2-4-02 күн бұрын
my discoverys are dramaupahntoaum and the ent urn games revenge of the jedi
@goodpoop887Күн бұрын
@@scientiaestpotentia2007 i got goku orgasm, Sexy Chicken, Fortnite Shitter, and Gorlock the orgasm
@goated_daveblunts12 сағат бұрын
i got supergayjesusbabyyodamandolorianbacon
@AimForDaHead-16s6 күн бұрын
I think the favourite 2 lines of all programmers are : "And guess what? I didnt even use AI" and "Ok, i think i fixed it now".
@lekelamega5 күн бұрын
And because of this code, making a first discovery is 100 times more difficult
This is such a good showcase of the limitations of AI to code. It works at first but as soon as you have to do anything more complicated it sucks and you have to either completely rewrite or understand the code and modify it to your needs anyway. Most of the time I've learned to just do it myself from the start.
@_gameforcer5 күн бұрын
If you can't understand the code AI gave you then you absolutely should either learn how it works or write your own code. That's a big IF though and it kinda shows a skill issue on your part. Because if you can understand AI code then you should have no problems either properly prompting AI to modify it or just quickly doing it yourself.
@Kayow123 күн бұрын
@@_gameforceryeah if you know how to code then you tell it each line or two properly and that'll still save a lot of time with accuracy
@adams001349 күн бұрын
Plottwist, he found all items at day 7, but decided to remove this and say that he closed browser.
@NoahBarrows-x8x5 күн бұрын
Possible next steps: 1. Run it skipping any items containing numbers, since you don't consider things like "Shrek 728" to be novel items. 2. Try clearing after every 30 combinations or so instead of every combination to see if that makes it run faster.
@einekleineente19 күн бұрын
I am so glad it took you 2h to write the Code! I feel much better now 😊
@DominoKiddoo7 күн бұрын
0:50 i prefer "Finite Craft"
@starfish06255 күн бұрын
C R A F T
@alaerobloxgamer55664 күн бұрын
im thinking of “limited craft”
@samuelharrington70304 күн бұрын
Copied coment ahh
@VerdantGMD5 күн бұрын
3:42 Water still? STILL WATER??? MANGO MANGO MANGO
@18Theories6 күн бұрын
As a programmer for 4 lazy years myself in JS, Python, and other programming languages, I detect a common skill issue here that we both have. Jokes aside that somehow helped me with my "own" code too and it was a good time watching so thanks man!
@sculkyyOld5 күн бұрын
The reason why progress slows down is probably because it keeps crafting old combinations that already have results
@swaggceo4 күн бұрын
Yeah that’s why there are bunch of cathulhu and other mess lmao
@_kingston3 күн бұрын
Could probably track for each item the index of the last item you tried to combine it with & keep incrementing index of item 2 until the number of items doesn’t increase & index of item 1 is 1 less than item2. Record index 2. Then increase index of item 1 by 1. Repeat until you are at end of combinations. Reset item 1 to 0 and set item 2 to that items max item 2 + 1. Keep repeating until no you iterate item 1 without increasing number of items
@NormalDemons9 күн бұрын
I love this guy he inspired me to learn coding
@Ek-xtreme8 күн бұрын
Finally subscribed you Sir are a descendant of my humor 🧑🏾🍳
@HelloQro9 күн бұрын
gotta say, those 4 years of learning how to code didn't go to waste :P
@randomgamedev-z5k9 күн бұрын
A new year with new errors
@Reddumz4 күн бұрын
I skipped through like 80% of the video and instantly was blasted with "SCOTLAAND FOREVERRRRRRRRRR " 11:27
@sabarathore51744 күн бұрын
"Children" being a coding term will always make questionable sentences.
@anjanavabiswas883519 сағат бұрын
Fine I'll watch the sponsor segment. You got me. You deserve it.
@catgod9994 күн бұрын
Cthulhu 78473 when I discover Clothing 78474: 💀
@pinguis_thorax7 күн бұрын
Why didn't you save all the things already combined so it only tries new combination wouldnt that make it way faster
@hephestusbh18038 күн бұрын
Balatro is a great game, nice plug Great video it was very entertaining to watch
@oxyriver14 күн бұрын
9:53 shaqtopus prime prime minos prime PREPARE THYSELF
@dylan_13136 күн бұрын
0:15 America moment
@veqxh3 күн бұрын
Or canada. Or the UK. Or SAE. Or Mexico. Or Brazil.... I think you get the idea.
@dylan_13133 күн бұрын
@ it’s especially true for the just elected president, if ykyk
@veqxh3 күн бұрын
@dylan_1313 trump is good. What do you mean?
@veqxh3 күн бұрын
@dylan_1313 not accurate at all.
@PhycochilosYT6 күн бұрын
Using AI to be AI should be considered illegal LET THE BETTER AI WIN 🗣️🔥🔥
@selfeducation4u8 күн бұрын
I imagine Neal watching this video
@ant0ngu9 күн бұрын
AI game vs AI gamer
@Eze-oz2wc4 күн бұрын
Little upset that I cant get any new discoverys because of this but GGs
@Applemax827 күн бұрын
10:09 Pteracornicornicornicornicornicorn
@maze70507 күн бұрын
EVEN CODING ALOTH IS ADDICTED TO BALATRO 😭
@jax5261Күн бұрын
You owe us 2 weeks
@yablock73466 күн бұрын
There are censored words you cant get (word you were able to get but you can't get it anymore), for example "Terrorist"
@kejrr-c2l4 күн бұрын
Ai stopped at cthulhu and started making every possible 25k combinations of it
@lachlanmason39186 күн бұрын
When this game was new I tried doing this. Everything with everything and building a database of combinations. Have up after a while after it started becoming nonsense. This was done by mimicking the API calls to get the output.
@Noah65446 күн бұрын
Thanks for showing how many issues you ran into that’s realistic and entertaining
@omagadh4 күн бұрын
i didnt expect for first discoveries getting industrialised
@ToeNail-VR3 күн бұрын
12:27 do it for a whole month
@Agentshooter3994 күн бұрын
Bro is the reason why I can't get any first discoveries
@Eze-oz2wc4 күн бұрын
Finally another person who is a little bit annoyed by this too I remember my first first discovery was something called a Gryphong or smth
@Chadopium-100percent3 күн бұрын
it's just like that rock paper scissors AI game, it constantly develops, it's like trying to find the limit of AI
@catgod9994 күн бұрын
Optimize the code to not use already used combinations, speed it up and keep it going for a month
@lger_tp95823 күн бұрын
Next we gonna have infinite craft speed running
@JulioCantu-n8lКүн бұрын
Bro really said, " Nha, i'd win" 6:00
@A.New.Channel08 күн бұрын
Nice video! Keep up the good work and happy new year!
@err0rz6336 күн бұрын
I'm assuming there is a character length limit for the item names. Combined with the fact that there are a limited number of possible characters, this limits all the character combinations in the names which would limit the amount of items. So it indeed isn't infinite.
@dadmitri42595 күн бұрын
why would there be a limit to the number of characters in an item name?
@dadmitri42595 күн бұрын
oh wait. according to a stack overflow answer, javascript does seem to have some kind of maximum string size. of which is at least around 2^30 characters for most browsers
@tipoima5 күн бұрын
There is a limit, IIRC it's 32 characters, maybe bit less. Don't remember how it counts emojis or other non-standard characters. If the output would be longer than these, the elements just don't combine.
@chessbergen6 күн бұрын
Well, there goes all my first discoveries lol
@MaximilianAugustusIIIJr2 күн бұрын
This guy is the reason getting a first discovery is hard
@Gojde8 күн бұрын
You should've name it "Limited Craft"
@e_person8825 күн бұрын
there goes the amount of new discoveries
@veryWisemysticaltree4 күн бұрын
"Cheesicornic Darth pie-ranha" 11:46 💀💀💀
@adrielwaderivera19746 күн бұрын
Achievement Accomplished: The Brother of Inner Sloth
@brightonshifu8 күн бұрын
😂😂the ad placement was so good I let it play, no skipping.
@JackBond12345 күн бұрын
You did all that work trying to code dragging and dropping ui elements when you could just make network requests directly for any of the matches you want.
@anjanavabiswas883519 сағат бұрын
But would that be visually appealing?
@JackBond123417 сағат бұрын
@anjanavabiswas8835 If it were me, I'd make my own UI for it. It'd probably be faster
@Bentting8 күн бұрын
YOU SHOULD MAKE "Game of bells and thrones and thrones"
@imkacper5 күн бұрын
they keep making new catthulu sequels
@James-e4q3c7 күн бұрын
Him “the codes in the discord” me: creating a server and running it for a month straight
@oneeyeyt60447 күн бұрын
This video haven't been a week old 😭🙏😭🙏🙏🙏
@pancakesandberrysyt8115 күн бұрын
How I list this title 1. My programming "skills": both creative and unoriginal 2. "My" programming skills: shows of coping, and not your code 3. My "programming" skills: wtf dose that means, SLAVERY????????
@GabrielGamerFreitas8 күн бұрын
hi, i'm from brazil, and because you enabled "AI translated audio" to brazilian portuguese, it also enabled the translation of the title of the video. the problem is, the translation is usually google translated (bad). As it is auto enabled by default, i'm warning you in case you haven't noticed. this video here talks about this kzbin.info/www/bejne/hpyZZISDiN6abc0
@BeaBea14556 күн бұрын
My Pony senses were tingling once I saw this video on my recommended. Glad to see Twilight Sparkle and PiratePony ship made the cut lol.
@desertpillow15 күн бұрын
Im not a coder but I think the reason some things were going to the top left is because thats where (0 , 0) is on a monitor (i think)
@Clip_It14 күн бұрын
yes, yes that is where 0,0 is
@The_Man_Machine-7776 күн бұрын
Only 1 week?! I'm running this for 1 year smh
@RayEye-h3m6 күн бұрын
I paused randomly at 10:14 and saw "9/11/10" a little too close for comfort
@HellLord-55 күн бұрын
So basically it’s infinite because it makes stuff up.. so you did beat it and you even got stuff nobody else found. I say that’s a success
@ArisTheMage3 күн бұрын
Time to run this for 5 months
@adamcionoob39126 күн бұрын
11:48 when I was playing this game for the first time I got same thing but with Diablo, I had hundreds of them.
@ZCduker4_PCP2 күн бұрын
0:23 that took probably 2 hours of research Took 2 hours of research To get his name btw
@tsg-art_studio6 күн бұрын
This video warms my cold withered heart.
@jammin13365 күн бұрын
0:32 greg heffly board president patrick star college president 😂😂
@walkdead945 күн бұрын
5:10 hahahaahah.. I had one ASMR integrated computer like yours once.. :D
@LiquidityStudios8 күн бұрын
The low taper fade meme is still massive
@Notsolongname3 сағат бұрын
5:18 I KNEW IT WAS A FUCKING RICKROLL LMAOOO
@ItzYousof9 күн бұрын
Happy new year
@skibidi_slicers-50003 күн бұрын
Balatro is actually so fun bro
@Hunter-Max-Studio9 күн бұрын
You should make the script remember the combinations so it doesn't repeat them
@latusPL5 күн бұрын
The End doesn't always mean The End.
@yerik15 күн бұрын
footage of a programmer skidding 😱😱😱
@pracklyy4 күн бұрын
bro is a trainwreck
@wehzahm8 күн бұрын
Happy new year everyone 🎉🎉
@SoloSoul696 күн бұрын
Brother is the sloth for a reason
@Chadopium-100percent3 күн бұрын
4:01 For?? But for is used when you know how many iterations are there edit: okay maybe it works since it stops on the variable
@alirahimi47469 күн бұрын
Duuuude, the sponsor spot 😂😂
@Faris7276 күн бұрын
why is the sloth looking at me like that
@V1TheMachine-n5i5 күн бұрын
0:52 It would be Finite Craft
@yakovsavelev12686 күн бұрын
The number of combinations grows with a factorial not all of them give a new item but they take time so you can say the game unbeatable
@agentkosticka176 күн бұрын
You have to be kidding. I had THE EXACT SAME IDEA. I have the program prototype 😭😭
@Bobbert_The_Foundation7 күн бұрын
10:44 i see that error like every other week lol
@drakondra3 күн бұрын
Theoretically it's finite. It would be interesting to run this program on an 1 exaflops supercomputer
@bpn3337 күн бұрын
Now i see why your name is coding sloth
@TH3MAN0FGAMES9 күн бұрын
*HAPPY NEW YEAR!!!!!* 🎊🎊🎊🎊🎊🎊🎊🎊
@Ninja_pug86 күн бұрын
whats the song at 4:43??
@Yami_YT0076 күн бұрын
I think it Ai made
@xxtoastedxx5 күн бұрын
Ya probably ai
@nathanweissenburger95772 күн бұрын
Oui de l'ia je pense
@StoneTomb_5 күн бұрын
balatro mentioned best video 11:00
@DavidTCDEMusic2 күн бұрын
Limited Craft?
@superprocz7 күн бұрын
You should have cached all of the crafts the program already did, so that you wouldn't do them again and the new discoveries won't decrease exponentially.