Using "My" Programming Skills To Beat An Infinite Game

  Рет қаралды 172,425

The Coding Sloth

The Coding Sloth

Күн бұрын

Пікірлер: 432
@TheCodingSloth
@TheCodingSloth 9 күн бұрын
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_fear
@nobody_fear 8 күн бұрын
@@kevinramy9463 there are plenty of free coding courses for beginners, don’t waste your money on a paid one
@prodigypro7933
@prodigypro7933 6 күн бұрын
@@kevinramy9463 womp womp
@RayEye-h3m
@RayEye-h3m 6 күн бұрын
no
@AOOA926
@AOOA926 5 күн бұрын
@@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();
@liamfarrar8861
@liamfarrar8861 5 күн бұрын
the invite is invalid
@altaccount648
@altaccount648 9 күн бұрын
4 years of computer science, turns to AI.
@sworatex1683
@sworatex1683 6 күн бұрын
Pretty sad...
@FluffyBloxYT-z5c
@FluffyBloxYT-z5c 5 күн бұрын
to be fair he do fix up some parts ai couldn't
@altaccount648
@altaccount648 5 күн бұрын
@FluffyBloxYT-z5c 💀right...
@xMartasowo
@xMartasowo 5 күн бұрын
Yeah well thanks to ai i can also re create it >:)
@sworatex1683
@sworatex1683 4 күн бұрын
@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
@martine27
@martine27 9 күн бұрын
Seeing a programmer use AI to beat a game made using AI makes me think the Unabomber was right
@FraudWhiteSpace
@FraudWhiteSpace 9 күн бұрын
Should've named "finite craft"
@sulo412
@sulo412 9 күн бұрын
im pretty sure non native english speakers dont even know what that word means. m e t o o
@Newb1eProgrammer
@Newb1eProgrammer 9 күн бұрын
​@@sulo412it means not infinite
@user-universalmaster.
@user-universalmaster. 9 күн бұрын
@@sulo412it means possessing any classification of limitation to possess an culmination, a extremity.
@sulo412
@sulo412 9 күн бұрын
@@user-universalmaster. its a joke😭
@WhiteHatThat
@WhiteHatThat 9 күн бұрын
Agreed.
@Yosleco
@Yosleco 5 күн бұрын
This is why I can’t get any new discoveries in infinite craft
@mitchwranich2236
@mitchwranich2236 4 күн бұрын
I managed to get about 80 ND because I kept adding numbers to Pirates of the Caribbean
@scientiaestpotentia2007
@scientiaestpotentia2007 3 күн бұрын
I got Space Cotgasm and Crasm a few days ago
@Silverlight2-4-0
@Silverlight2-4-0 2 күн бұрын
my discoverys are dramaupahntoaum and the ent urn games revenge of the jedi
@goodpoop887
@goodpoop887 Күн бұрын
@@scientiaestpotentia2007 i got goku orgasm, Sexy Chicken, Fortnite Shitter, and Gorlock the orgasm
@goated_daveblunts
@goated_daveblunts 12 сағат бұрын
i got supergayjesusbabyyodamandolorianbacon
@AimForDaHead-16s
@AimForDaHead-16s 6 күн бұрын
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".
@lekelamega
@lekelamega 5 күн бұрын
And because of this code, making a first discovery is 100 times more difficult
@FrostNugget23
@FrostNugget23 3 күн бұрын
Omg you’re right 😭😭😭
@Aqueouslyyy
@Aqueouslyyy 8 күн бұрын
I was wondering why "My" was in quotations 😭
@lightning_11
@lightning_11 5 күн бұрын
It do be accurate, though!
@sebastianbaldeo3209
@sebastianbaldeo3209 9 күн бұрын
sick now we have "limited craft"
@Nann1006
@Nann1006 9 күн бұрын
finite craft
@lightning_11
@lightning_11 5 күн бұрын
@@Nann1006 Fine craft
@nailauthar
@nailauthar 5 күн бұрын
@@lightning_11 mine craft
@enderz1256
@enderz1256 7 күн бұрын
10:10 "Pteracornicornicornicornicornicornicornicorn" 🗣🗣
@jonqthqn
@jonqthqn 6 күн бұрын
nicornicornicor… hold up a minute 😭
@MBStein12
@MBStein12 5 күн бұрын
@jonqthqnWAAAA
@patrickstening
@patrickstening 5 күн бұрын
Chocolate santa clawsosarus rex!?!?!?!?!??!?!
@GlowNinjaZ
@GlowNinjaZ 7 күн бұрын
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.
@_gameforcer
@_gameforcer 5 күн бұрын
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.
@Kayow12
@Kayow12 3 күн бұрын
​@@_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
@adams00134
@adams00134 9 күн бұрын
Plottwist, he found all items at day 7, but decided to remove this and say that he closed browser.
@NoahBarrows-x8x
@NoahBarrows-x8x 5 күн бұрын
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.
@einekleineente1
@einekleineente1 9 күн бұрын
I am so glad it took you 2h to write the Code! I feel much better now 😊
@DominoKiddoo
@DominoKiddoo 7 күн бұрын
0:50 i prefer "Finite Craft"
@starfish0625
@starfish0625 5 күн бұрын
C R A F T
@alaerobloxgamer5566
@alaerobloxgamer5566 4 күн бұрын
im thinking of “limited craft”
@samuelharrington7030
@samuelharrington7030 4 күн бұрын
Copied coment ahh
@VerdantGMD
@VerdantGMD 5 күн бұрын
3:42 Water still? STILL WATER??? MANGO MANGO MANGO
@18Theories
@18Theories 6 күн бұрын
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!
@sculkyyOld
@sculkyyOld 5 күн бұрын
The reason why progress slows down is probably because it keeps crafting old combinations that already have results
@swaggceo
@swaggceo 4 күн бұрын
Yeah that’s why there are bunch of cathulhu and other mess lmao
@_kingston
@_kingston 3 күн бұрын
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
@NormalDemons
@NormalDemons 9 күн бұрын
I love this guy he inspired me to learn coding
@Ek-xtreme
@Ek-xtreme 8 күн бұрын
Finally subscribed you Sir are a descendant of my humor 🧑🏾‍🍳
@HelloQro
@HelloQro 9 күн бұрын
gotta say, those 4 years of learning how to code didn't go to waste :P
@randomgamedev-z5k
@randomgamedev-z5k 9 күн бұрын
A new year with new errors
@Reddumz
@Reddumz 4 күн бұрын
I skipped through like 80% of the video and instantly was blasted with "SCOTLAAND FOREVERRRRRRRRRR " 11:27
@sabarathore5174
@sabarathore5174 4 күн бұрын
"Children" being a coding term will always make questionable sentences.
@anjanavabiswas8835
@anjanavabiswas8835 19 сағат бұрын
Fine I'll watch the sponsor segment. You got me. You deserve it.
@catgod999
@catgod999 4 күн бұрын
Cthulhu 78473 when I discover Clothing 78474: 💀
@pinguis_thorax
@pinguis_thorax 7 күн бұрын
Why didn't you save all the things already combined so it only tries new combination wouldnt that make it way faster
@hephestusbh1803
@hephestusbh1803 8 күн бұрын
Balatro is a great game, nice plug Great video it was very entertaining to watch
@oxyriver1
@oxyriver1 4 күн бұрын
9:53 shaqtopus prime prime minos prime PREPARE THYSELF
@dylan_1313
@dylan_1313 6 күн бұрын
0:15 America moment
@veqxh
@veqxh 3 күн бұрын
Or canada. Or the UK. Or SAE. Or Mexico. Or Brazil.... I think you get the idea.
@dylan_1313
@dylan_1313 3 күн бұрын
@ it’s especially true for the just elected president, if ykyk
@veqxh
@veqxh 3 күн бұрын
@dylan_1313 trump is good. What do you mean?
@veqxh
@veqxh 3 күн бұрын
@dylan_1313 not accurate at all.
@PhycochilosYT
@PhycochilosYT 6 күн бұрын
Using AI to be AI should be considered illegal LET THE BETTER AI WIN 🗣️🔥🔥
@selfeducation4u
@selfeducation4u 8 күн бұрын
I imagine Neal watching this video
@ant0ngu
@ant0ngu 9 күн бұрын
AI game vs AI gamer
@Eze-oz2wc
@Eze-oz2wc 4 күн бұрын
Little upset that I cant get any new discoverys because of this but GGs
@Applemax82
@Applemax82 7 күн бұрын
10:09 Pteracornicornicornicornicornicorn
@maze7050
@maze7050 7 күн бұрын
EVEN CODING ALOTH IS ADDICTED TO BALATRO 😭
@jax5261
@jax5261 Күн бұрын
You owe us 2 weeks
@yablock7346
@yablock7346 6 күн бұрын
There are censored words you cant get (word you were able to get but you can't get it anymore), for example "Terrorist"
@kejrr-c2l
@kejrr-c2l 4 күн бұрын
Ai stopped at cthulhu and started making every possible 25k combinations of it
@lachlanmason3918
@lachlanmason3918 6 күн бұрын
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.
@Noah6544
@Noah6544 6 күн бұрын
Thanks for showing how many issues you ran into that’s realistic and entertaining
@omagadh
@omagadh 4 күн бұрын
i didnt expect for first discoveries getting industrialised
@ToeNail-VR
@ToeNail-VR 3 күн бұрын
12:27 do it for a whole month
@Agentshooter399
@Agentshooter399 4 күн бұрын
Bro is the reason why I can't get any first discoveries
@Eze-oz2wc
@Eze-oz2wc 4 күн бұрын
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-100percent
@Chadopium-100percent 3 күн бұрын
it's just like that rock paper scissors AI game, it constantly develops, it's like trying to find the limit of AI
@catgod999
@catgod999 4 күн бұрын
Optimize the code to not use already used combinations, speed it up and keep it going for a month
@lger_tp9582
@lger_tp9582 3 күн бұрын
Next we gonna have infinite craft speed running
@JulioCantu-n8l
@JulioCantu-n8l Күн бұрын
Bro really said, " Nha, i'd win" 6:00
@A.New.Channel0
@A.New.Channel0 8 күн бұрын
Nice video! Keep up the good work and happy new year!
@err0rz633
@err0rz633 6 күн бұрын
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.
@dadmitri4259
@dadmitri4259 5 күн бұрын
why would there be a limit to the number of characters in an item name?
@dadmitri4259
@dadmitri4259 5 күн бұрын
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
@tipoima
@tipoima 5 күн бұрын
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.
@chessbergen
@chessbergen 6 күн бұрын
Well, there goes all my first discoveries lol
@MaximilianAugustusIIIJr
@MaximilianAugustusIIIJr 2 күн бұрын
This guy is the reason getting a first discovery is hard
@Gojde
@Gojde 8 күн бұрын
You should've name it "Limited Craft"
@e_person882
@e_person882 5 күн бұрын
there goes the amount of new discoveries
@veryWisemysticaltree
@veryWisemysticaltree 4 күн бұрын
"Cheesicornic Darth pie-ranha" 11:46 💀💀💀
@adrielwaderivera1974
@adrielwaderivera1974 6 күн бұрын
Achievement Accomplished: The Brother of Inner Sloth
@brightonshifu
@brightonshifu 8 күн бұрын
😂😂the ad placement was so good I let it play, no skipping.
@JackBond1234
@JackBond1234 5 күн бұрын
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.
@anjanavabiswas8835
@anjanavabiswas8835 19 сағат бұрын
But would that be visually appealing?
@JackBond1234
@JackBond1234 17 сағат бұрын
@anjanavabiswas8835 If it were me, I'd make my own UI for it. It'd probably be faster
@Bentting
@Bentting 8 күн бұрын
YOU SHOULD MAKE "Game of bells and thrones and thrones"
@imkacper
@imkacper 5 күн бұрын
they keep making new catthulu sequels
@James-e4q3c
@James-e4q3c 7 күн бұрын
Him “the codes in the discord” me: creating a server and running it for a month straight
@oneeyeyt6044
@oneeyeyt6044 7 күн бұрын
This video haven't been a week old 😭🙏😭🙏🙏🙏
@pancakesandberrysyt811
@pancakesandberrysyt811 5 күн бұрын
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????????
@GabrielGamerFreitas
@GabrielGamerFreitas 8 күн бұрын
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
@BeaBea1455
@BeaBea1455 6 күн бұрын
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.
@desertpillow1
@desertpillow1 5 күн бұрын
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_It1
@Clip_It1 4 күн бұрын
yes, yes that is where 0,0 is
@The_Man_Machine-777
@The_Man_Machine-777 6 күн бұрын
Only 1 week?! I'm running this for 1 year smh
@RayEye-h3m
@RayEye-h3m 6 күн бұрын
I paused randomly at 10:14 and saw "9/11/10" a little too close for comfort
@HellLord-5
@HellLord-5 5 күн бұрын
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
@ArisTheMage
@ArisTheMage 3 күн бұрын
Time to run this for 5 months
@adamcionoob3912
@adamcionoob3912 6 күн бұрын
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_PCP
@ZCduker4_PCP 2 күн бұрын
0:23 that took probably 2 hours of research Took 2 hours of research To get his name btw
@tsg-art_studio
@tsg-art_studio 6 күн бұрын
This video warms my cold withered heart.
@jammin1336
@jammin1336 5 күн бұрын
0:32 greg heffly board president patrick star college president 😂😂
@walkdead94
@walkdead94 5 күн бұрын
5:10 hahahaahah.. I had one ASMR integrated computer like yours once.. :D
@LiquidityStudios
@LiquidityStudios 8 күн бұрын
The low taper fade meme is still massive
@Notsolongname
@Notsolongname 3 сағат бұрын
5:18 I KNEW IT WAS A FUCKING RICKROLL LMAOOO
@ItzYousof
@ItzYousof 9 күн бұрын
Happy new year
@skibidi_slicers-5000
@skibidi_slicers-5000 3 күн бұрын
Balatro is actually so fun bro
@Hunter-Max-Studio
@Hunter-Max-Studio 9 күн бұрын
You should make the script remember the combinations so it doesn't repeat them
@latusPL
@latusPL 5 күн бұрын
The End doesn't always mean The End.
@yerik1
@yerik1 5 күн бұрын
footage of a programmer skidding 😱😱😱
@pracklyy
@pracklyy 4 күн бұрын
bro is a trainwreck
@wehzahm
@wehzahm 8 күн бұрын
Happy new year everyone 🎉🎉
@SoloSoul69
@SoloSoul69 6 күн бұрын
Brother is the sloth for a reason
@Chadopium-100percent
@Chadopium-100percent 3 күн бұрын
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
@alirahimi4746
@alirahimi4746 9 күн бұрын
Duuuude, the sponsor spot 😂😂
@Faris727
@Faris727 6 күн бұрын
why is the sloth looking at me like that
@V1TheMachine-n5i
@V1TheMachine-n5i 5 күн бұрын
0:52 It would be Finite Craft
@yakovsavelev1268
@yakovsavelev1268 6 күн бұрын
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
@agentkosticka17
@agentkosticka17 6 күн бұрын
You have to be kidding. I had THE EXACT SAME IDEA. I have the program prototype 😭😭
@Bobbert_The_Foundation
@Bobbert_The_Foundation 7 күн бұрын
10:44 i see that error like every other week lol
@drakondra
@drakondra 3 күн бұрын
Theoretically it's finite. It would be interesting to run this program on an 1 exaflops supercomputer
@bpn333
@bpn333 7 күн бұрын
Now i see why your name is coding sloth
@TH3MAN0FGAMES
@TH3MAN0FGAMES 9 күн бұрын
*HAPPY NEW YEAR!!!!!* 🎊🎊🎊🎊🎊🎊🎊🎊
@Ninja_pug8
@Ninja_pug8 6 күн бұрын
whats the song at 4:43??
@Yami_YT007
@Yami_YT007 6 күн бұрын
I think it Ai made
@xxtoastedxx
@xxtoastedxx 5 күн бұрын
Ya probably ai
@nathanweissenburger9577
@nathanweissenburger9577 2 күн бұрын
Oui de l'ia je pense
@StoneTomb_
@StoneTomb_ 5 күн бұрын
balatro mentioned best video 11:00
@DavidTCDEMusic
@DavidTCDEMusic 2 күн бұрын
Limited Craft?
@superprocz
@superprocz 7 күн бұрын
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.
@neoleonor7140
@neoleonor7140 4 күн бұрын
Let’s game it out if he was a programmer:
@THEBLINDNINJ
@THEBLINDNINJ 6 күн бұрын
That thumbnail be lookin a lil sassy today
Using My Programming Skills To Destroy Typing Games
11:25
The Coding Sloth
Рет қаралды 787 М.
DESTROYING Cookie Clicker With My Cookie God Program
16:36
The Coding Sloth
Рет қаралды 1,3 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
I Made Word Puzzles, But They're Horrible
50:47
Magic The Noah
Рет қаралды 757 М.
How I Beat The Password Game
39:53
Bog
Рет қаралды 4,3 МЛН
I made Cheat Engine in C# to hack Minecraft
7:25
vycdev
Рет қаралды 23 М.
Can I 100% Superliminal and Get a Refund?
23:36
Gronf
Рет қаралды 265 М.
Can I remake those SH*TTY mobile games in 1 HOUR?
23:13
Code Bullet
Рет қаралды 3,2 МЛН
Undertale Speedrunner vs Hardest Undertale Quiz
53:58
Shayy
Рет қаралды 133 М.
The Genius Way Computers Multiply Big Numbers
22:04
PurpleMind
Рет қаралды 258 М.
Exposing Discord's Degenerate Gambling Predictors...
23:44
No Text To Speech
Рет қаралды 925 М.
Can You Beat Minecraft From One Grass Block?
35:27
Beppo
Рет қаралды 6 МЛН
Using AI to NEVER LOSE in KAHOOT
10:54
The Coding Sloth
Рет қаралды 1,5 МЛН