I Created An A.I. to DESTROY Tetris
Вставка
- Опубліковано 21 лип 2020
- Ahh yeah its tetris, you might have heard of it. Tetris is a game which i am making, i have made it, thats what the video is, god what a terrible description. I create an AI to beat the world record for the longest tetris game.
Twitter: / code_bullet
Patreon: / codebullet
Discord: / discord
Art created by @Dachi.art / dachi.art
can u play and dance to tetris beatbox at my funeral please
@Green The Hedgehog How's thou orange juice?
epic dani
T h i c c
Oh hey it's Dani!!
How's the game DANI (or you haven't finished it)
0% Mumble rap
0% Drugs
100% God tier beatboxing
Wait... WHY I SEE U IN EVERY VIDEO I SEE
@@ezequielgonzalez6010 if you see him in every comment section then you have a very good taste in youtube videos
obama is fire
makes sense
@@ezequielgonzalez6010 Because you watch the same type of videos
That block explosion thing was truly hilarious and at once somewhat of an eye candy
Like an old-school screensaver. 👌
@@benjaminoechsli1941 Now that I think about it... Yes. Just like an old-school screensaver.
I actually want it as a screensaver
I love how he’s always saying not to insult him for being dumb when I could probably do like 3 lines of code before giving up.
i would give up the moment there was any problem/glitch lmao couldn't be bothered to figure out the issue let alone fix it
The thing is I am a coder and @Code bullet he's not stupid, it's just another bug see imagine thousands of lines and you forget one capital letter that's a bug cause of how strict these programming language are
I program in Python, JS, C/C++/C#, and 100% understand case-sensitivity
5:55
“Ok, let’s add some rotation” *blocks furiously spin into oblivion*
This made me laugh. Lmao
"mr. bullet i dont feel so good"
hey hey, it was kind of some rotation
"let's add some rotation"
*I DIAGNOSE YOU WITH THE SPIN DISEASE* -code bullet
Introverts: *Stay home*
Code Bullet: *Screams at himself and insults himself*
Screams at and insults himself
609 likes now wat does that mean 🤔
when did i become code bullet?
This guy is seriously talented. Coding and comedy is a pretty hard combo to execute
Getting your AI to dominate the online leaderboards is definitely something I’d like to witness.
That being said, I support UA-camrs taking as much time between videos as they want/need. You owe us nothing. Thanks for sharing all the content youve created so far
"I could just be drawing random blocks in random positions and increasing the score, and you wouldn't know"
That's too much effort, we know it's legit
exactly what i thought XD imagine drawing each frame for 10 k scors of tetris just to "appear " legit XD
@@aidanreynolds5993 probably because its still too fast for 0.25x speed.
No he’s did it I looked (it gave me a headache though) and I saw each piece and it matches up to the pieces
@@aidanreynolds5993 nah dude look at the score. It's still going up by like 10 lines every frame so it would look more fake at the slower speed
Alternate title: “computer person bullies himself into insanity trying to make Tetris”
bolson42 yes
i changed the 699 into 700, thank me
Mr. Swift thank you
@@bolson42 how did your comment get 73 likes in 14 minutes-
Mr. Swift
I’m guessing that, since it’s the top comment, it’s the one everyone sees first so basically everyone who watched the video and went into the comment section liked it
14:18 - 14:42 this is Gold!
Especially the random court part at 14:37. I chocked from laughter at this point. I swear I'd watch this guy for any content. Coding, podcasting or gaming. He has more personality than most streamers out there!
I love how making the game was harder than making the AI
"Cus it's definitely not quantity"
Why do you hurt me this way, CB?
invictus127 yes
yes
yes
yes
I like how he used to be calm and collected but now he's gone off the rails
every person goes insane at some point
Yeah he’s finally lost it
Just like Michael reeves
When was the last time he could stay calm for a full video ? Like in my memories there's always a moment he just flips
Collage.mp4
Evan getting really excited about a square moving down is a WAYYYYYYYY too accurate depiction of programmers celebrating when something works.
The beginning is so relatable. You have no idea how much work it is to get a square on another square that can move. It's not impossibly hard but still a lot for the task.
"One quick fix later"
The blocks disintegrate.
Welcome to software
"All I need is one quick fix"
*breaks literally everything*
The joys of software development
Time to cry in unit test
at 15:32 if you pause and go frame by frame on the website version (use the . key to go frame by frame) you will see his script he wrote and is using lol
It do look cool though
Rarest events in life:
3: Win the lottery.
2: Die on a plane crash.
1: Witness a CB video upload.
Agreed
its the most rarer than rarest.. XP
oh yeees
He coded this for 3months
lol I feel bad for subscribers, I just stumbled upon it 😅
So uhhhhhh how is this video age restricted? It's literally a sentient TV writing some fancy words to make a computer play a block game
Update: I can see why, you used _JavaScript_
Yep
Because java is such a mature coding language...
Subscribed. You made an AI Tetris player that is godlike compared to any other version I ever have seen. I want to see what you come up with next now, the best I have seen barely beat the human best until now.
"Here our priority is quality. Because it defenitely isn't quantity."
Hey he uploads more than ceave gaming has
Diane Morrow Now I’m sad. I miss Mario maker 2 videos.
Pedro Gomes and its barely the quality we expect after this many months
Yeah lol
generic username 420 he was probably busy
Total Score: 14549
Reason of death: 2 Empty Pillars and no Line pieces.
This should be much higher in the comments
I'm getting expert high dragon trial flashbacks from your pfp
better yet, frame-by-frame reveals it got a line piece right before death, but could only clear at most 2 lines with it.
Obviously the punishment for leaving columns open wasn't high enough.
Also, CodeBullet should have put a conditional pause when the score is high enough and the game ends, then we could have actually seen the final board.
I was going to say it but then i checked if someone else already did
That is the number and reason I saw
I love that for the bachelor joke he just took his boxing animation and made it wavy 😂
Age restricted? Seriously UA-cam.....
“Our number one priority is quality because it’s definitely not quantity”
One of the best jokes I’ve heard in a while, might steal it
A good joke, I'll steal it! Noone will ever know!
*WHERE SAhFETY IS NUMBER ONE PRIORITY* .mp4
From my limited coding knowledge my favorite quote is "I changed nothing and it works"
this happens so fucking often
Yeah... As well.as when you change one number and something completely different casually breaks
i hate this.... I really do. This rarely happens to me, and when it does, I'm about ready to toss whatever keyboarded thing I'm using at the nearest douchebag I'm aware of.
This happens all the time lol
Oh my god this is the most relatable thing I have ever read
Yeah you definitely aren't putting random blocks and changing the score. The < and > keys really helped me figure it out.
Also 14549, wow.
CB, I freaking love this content, no creator has be laughing out loud as often as you do my man.
CB: "Do you want me to make an A.I. to bully a competitive Tetris server with a superior machine mind?"
Literally Everyone: "You have three months."
This needs to be the top comment!
For the love of God, please bully those nerds.
Roby Salter unfortunately, his AI isn’t good enough to beat anyone decent
@@teeks8713 Ohhh right right, I see what you're doing. "Yeah! That AI is shit, son! It's weak, boi! It could never beat anyone decent on that website!" *wink wink*
@@salterrific dude im a jstris supporter I've played on there for almost a year and 90% of the player base could beat it in under 10 seconds, its not a fighting ai, speaking of witch this is ua-cam.com/channels/pxmJQbKaqhZHp1WDRMGn3w.html
Subbing to this guy is a constant cycle of forgetting he exists then being extremly happy to see his new video
Ur not wrong
I mean you are right
I wish he uploaded more often
David Kehley we all do
Agreed!
1:09 i got a NASA ad immediately after this moment that started with "all of America is proud of you" and I genuinely thought Code Bullet just edited that in for a bit.
Recently found your videos thanks to the yt algorithm and I'm f'n loving them bud
Code Bullet: *comes back for the 1 000 000th time*
everyone: *return of the king*
Where does he go
The Chronics coding
I like Tetris
1998SIMOMEGA uni?
@@thechronics4380 University, college
Code bullet:
10% coding
90% arguing with himself
Actually how programming works. Same for mechanic work, and PC maintenance.
I mean yeah
Yeah ngl I like when we he wouldn’t do skits like 70 times... not gonna like kinda is annoying
20% wanting to die bc you can't figure out the issue with your code
and beating himself up
There's a surprising amount of logic behind a Tetris game. Yeah, "It's Tetris," it's ancient and everybody knows it, BUT! For example, I somehow always forget that Tetris pieces aren't actually being picked completely at random. The game always sends out all of the different shapes at it's disposal first, so getting two of the same piece in a row is quite unlikely.
It's great to see the whole process, troubleshooting and all.
Codebullet is the ultimate at blueballing his viewers. “I’ll post consistently” followed by months of silence and he says this every time 😂
Once every few months is consistent ;D
this time he said, he has disappearing to do...
I mean, if you think about it, that is consistent for him.
Gotta admit this stuff takes a long time to make
It's forgivable tho this content is ridiculously complicated
It's him talking to himself, insulting himself.
This pandemic really broke this man, and the coding just finished him off.
He ok?
Airegon Hahaha I don’t know anymore.
No your incorrect the pandemic did absolutely nothing , it was just the coding
666th like lul
@@johnshelton4753 so you saying that the coronavirus is just a coding
1:59 Yep, definitely a programmer moment.
"Oh shoot why didn't it work??"
10 seconds later...
"Oh wait, that's what was supposed to happen."
I came across you randomly and I Hella like you're vids deff subbing bro
Fun fact: The game and AI took him 20 minutes to make. The rest of the 4 months was VFX editing.
No, animating
@@Nicky_T leave the mans be
No it took him 4 months learning Beatbox
Nicky T funny Reddit 100?
The 4 months was spent waiting for the ai to lose.
Code Bullet: What to do for an intro...
"Oh, I know." *Put's cocaine into USB port*
Nevermind that's just the whole video.
It's Verbalase smart ass
@@maxeclipse4065 and similar profile pics
Maybe I'm just being a paranoid weeb, but I feel like there was a dragon maid reference in there.
ua-cam.com/video/7A4IlwuuyyI/v-deo.html
@@maxeclipse4065 If you're one in a million there are 7,600 of you on Earth, welcome to the revolution.
ngl this into is my fave of all of them!
Awesome content bro!
Did anyone notice that he fixed his sprites so that whenever he flips them, the tshirt doesn’t mirror? It’s such a minor detail, but I love it.
Some of them still do, but it is still cool.
I think the code bullet on his screen/face is still mirrored though, same with his antennae, at least sometimes
He missed some, 4.43
his worst enemy must be the bullet code
Thats the bug
Code Bullet : "Are you winnin' son?"
A.I. : "It's over 9000."
That's a really dead meme
And thus is meme live
Shi Ho Kim no just no
14549*
@Shi Ho Kim -1 up
This is actually an amazing video the combination of humor and education is unfathomable.
that intro is a vibe
good job
The madlad made a 3D model of himself just to put a default dancing alan in the video
Timestamp?
@@apossiblyhereticalalphaleg3595 8:24
@@apossiblyhereticalalphaleg3595 08:23
@@apossiblyhereticalalphaleg3595 8:20
@Darth Hue 8:20
Two rules:
Don’t leave holes
Place pieces low
And with that the AI is officially better than me at Tetris.
Eh. Kinda. He didn't quite program Tetris, and there are a few important things missing that could make you much better at real Tetris than the AI
@@El_Rey_247 People like you must be the life of the party hey?
@@DaHolyCanadian yes
I love how you can pause while it's playing and just get a perfectly fine board most of the time
Not even a minute in and I'm already chuckling at your passion for Korobeiniki 😂
CodeBullet is my spirit animal:
He disappears for months, does cool shit, and repeats!
Emanmonster13 was pretty much the same with Michael Reeves before he joined offline
@@Luxembourgeoisie fr lmao
Judging from the beginning of this video, I think theres a "sniffs some coke" missing from your comment ahahah
Dont forget the jojo references
my father except without the cool shit and instead of months my entire life
"I didn't see what the score was, or what went wrong."
14549, and it looks like it get into a position where it made a 3-deep column, made a little hole next to the top of the column, then made another 3-deep column on top of THAT, turning into a 7-deep column. It then did that again on the other side, turning into the old "Ascending empty columns" issue before dying.
So im not the only one who paused the video a billion times to find the last possible score.
@@darkwolf2k007 Protip! You can use the comma and period keys to move the video one frame at a time.
Im on mobile
Yeah, it had no real way to get rid of them because it had no long pieces.
To be even more accurate, you can calculate the average score difference per frame to get the uncertainty of the score
I was fully prepared to bop w you on that Tetris into why’d you have to cut it at 20 seconds bro
5:29 could be a very interesting spin on Tetris. A small chance that your tetromino could transmutate to another one when it locks in place.
"I Created An A.I. to DESTROY Tetris"
Recreates Tetris
YOU HAVE BECOME THE VERY THING YOU SWORE TO DESTROY
Quite literally to
@@UhhhhhWav your name bothers me
Lol
Lol
@@Shaper-bx9kb why is that?
Code bullet incorporate “last score” and “high score” functions so you don’t have to get confused about the score it gets
that would have been smart, but he would say "fuck it, I'm lazy" lol
14549
final score
I know I'm 2 years late but I loved his wavy dancing at the start I dont know why it was just great 😂 love the videos 😁
possibly one of the funniest videos hes made i am cracking up at work (also to be fair im under the ifluence of laughing gas due to dentist this morning)
Alternative title: Man insults himself in order to create and then destroy Tetris.
yep
Meh
Fax
Sounds a weird description of our relation between us and God
He's pretty much like me working on my projects... I'll spend hours, days, months working on something only just to get depressed remove it and take a month break. Difference is he actually accomplishes something -,-
Plot twist: Code Bullet is actually really good at Tetris and was playing it all along
Plot twist: Code Bullet is an AI making more AI to take over the world
wait why are you here.
Z Striker it’s a fake nightbot
@@Jason-fv7kn i know. ita a joke buddy
actually TheOdd1sOut was playing
cobe bullet after one quick fix:
spins the tetrominoes*
*fucken explodes*
This guys videos remind me of when I first discovered scratch and was excited until I learned how difficult it would be
There was a whole algorithm to what order the Tetris pieces randomly come in. They basically had a queue of seven spots for the different pieces and reshuffled that queue with all seven pieces in it each time it ran out of pieces. So it was random, but not completely random. You couldn't get three Ls in a row or whatever. Something like that. When it's pure random, sometimes you can get three or four of the same piece in a row, or go 20 or 30 pieces without getting an L, and that seemed "unnatural". So they rigged it to give a smooth but random flow of piece types.
This is a strange combo of classic Tetris and new Tetris with the fully random pieces but also having the hold function
Yeah that depends on the Tetris version, NES Tetris (the one played in Classic Tetris World Championship) is truly random
I noticed that too
@@Fabbesson NES Tetris does NOT have equal chances of each piece appearing. If it gets the same piece as it did previously it rerolls (and also has a minor chance of rerolling anyways). On reroll any piece can be chosen. So the chance of the 6 pieces you didn't get is 9/56 (1/8+2/8*1/7), and the piece you got is 2/56 (2/8*1/7). (Actually the reroll code is not perfectly balanced for some reason so pieces are slightly off these probabilities, but this is within .2%)
Bruh, you literally just skipped the official rotating system and the incorrect scoring.
Every CB Video : “This should be a quick fix”
*last words before disaster*
That's just programming
essence of programming
And the logic of life.
Key word:
*should*
And everything goes wrong...
famous last words
I wonder if the AI would do better if he implemented stuff from the Tetris Guideline.
Like 7-Bag, 6 Next Pieces, the Super Rotation System, T-Spin Detection, Accurate Score for every possible method of gaining it and more.
It would probably improve performance to the level of modern tetris professionals.
I say the way to test improvement would be putting the AI through the Sprint mode (A time trial to clear 40 Lines) and seeing if it can get a faster time with more score.
Evan, if you do this, good luck, especially on even finding the leaked Tetris Guideline.
The score I could see before the demise was 14549 according to the frames, though based on the next piece it could be 14550. The issue at the end is that it pillared twice as you said.
i like the fact he doesn't even notice he gained another million subs since his last vid.
And made a tetris AI 10 hours before the new Tetris Effect is announced
His last video he had 1.9 million not 1.1 minutes
@@okaymancharles he had about 1.3 upon last vids release
@@strebicux6174 in his last video he literally says he had 1.9 million
Holy F I didn't even notice either.
"Let me know if that's a video u would like to see"
Dude we would like anything at this point especially if takes less than 3 months
SOOOOOOOOOOOOOOOOO fcking true i like him but he is worse than my father my father comes home at least 2 times a year ;D
I hate how much I love his videos
Anuk hey mine never shows XD
i would watch him take a shit if it took less than 3 months
Why don't you put this intro into every video? It's just damn AWESOME, my guy!
0:01 I was vibing too
4:08 *_"Should be a quick fix"_*
The words of every programmer before they throw a massive tantrum and reiterate over their life choices.
Yes
Y e s
Yes
Yes
Looks like duck hunt
*”One Quick Fix Later”*
_Code Bullet Creates Exploding Tetrominoes_
Oh hey so some else actually knows what the fuck these things are called
lmaooo
This seriously gives off some Linux screensaver vibes.
meanwhile the rotating shapes causes tears in the space-time continuum by phasing into other shapes.
Also that's actually a bug in the real game as well
14549 was final score if you care about that
I have a challenge that's perfect for Codebullet, it came from a dream I had last night after watching DougDoug set up twitch-plays and then watching Code Bullet make another video game just to have AI control it. Imagine a game that plays something like Diablo or Vampire Survivors where the player fights like dozens of enemies at once. But there's one big invincible enemy controlled by UA-cam/Twitch chat. The chat-monster could be hard-coded into the game and all a streamer needs to do to set this game up is input something like a url to the chat. Maybe the monster moves faster than the player, and when it's off-screen there's a Smash Bros-style bubble that appears so that chat can see where they are from the player and what obstacles are near them. It would make sense for the monster to deal a lot of damage or insta-kill the player on touch, and its only controls needed by the chat would be up-down-left-right. Although for added fun there could be an attack button that generates its own hitbox, a speed-up/dash button instead of just being faster, and/or emotes. These "extra" buttons and/or projectiles could be activated by donos too. This could turn into a whole chat-interactive boss-battle and become a new sungenre of games since we're watching streamers more and more. Please like this so that CB hopefully sees it.
The Tetris beatbox was the best! Loved it!
Oh the coding was nice I guess.
"bullying nerds in jstris"
Oh boy he's going to be running away crying after he sees the players on there
Jstris?
@@kylehull3658 That's a javascript version of tetris that has no animations and is really fast.
His AI would probably lose tbh. I can see the AI getting screwed up when another player sends junk to his screen. Plus some people are nuts at tetris. I would be interested to see it though.
were you not listening to the video? the ai got around 14500 and u say a HUMAN can beat that?
@@theghoulhunter...4485 if the human had time yeah
Alternative title:
Code Bullet bullies his other personalities for 17 minutes.
Kinda felt like it got old after a while though
Wait, is the spider one of his personalities.🤔...
true
Omg I just experienced the face reveal! So now i cant stop seeing his head bounce side to side during all those music sections 🤣
I started watching this video yesterday, and I was really trippy to resume from 4:58
Code Bullet: I'm the most trustworthy, reliable, consistent guy on the internet
Me: **thinks back to enigma**
New title: Man bullies himself into making Tetris
Wonder if he's from Florida
And a spider
@@pabloendres he's maybe Australian
Actually that exploding block thing looked really cool, that could be a fun game idea
I can't believe this didn't show up on my feed until now. I blame you
"Transitions are on point today"
Well, that's what happens when you have _checks_ _watch_ ...
*4* *months* *to* *do* *it*
we're still waiting on enigma part 2
@@beelal6407 what's enigma
@@cupofmilk1388 Watch his old videos.
You know he did this in 2 days anyway
Today on Code Bullet: Proving intelligence leads to madness.
What intelligence?
@@8bittChess hahaha best reply ever
Or is it the other way around? I certainly hope so, because in that case I'm a genius.
Ignorance is bliss
Blind as a sighted person DON’T BRING UP THAT BRAT! All I wanted was to punch Goku in his stupid face.
Great vid! About 4:20, IDK JS, so if I did this, I would probably just break it.
the new sprites are just beautiful
Alternate title: Crazy person bullies himself while struggling to reinvent a game and teach a bot to play it
It would be kind of annoying tho, if he would name all of his videos the same
Stolen comment from me
@@txkushima1072 Nope, not at all. Great minds think alike
@@txkushima1072 r/beatmetoit
Great job UA-cam, there defiantly ain’t just 1 reply
How to make a Ai that can’t lose in Tetris
1. Tell it “just don’t lose lol”
2. Profit
ew
The AI will just pause the game.
Big brain time
if lose:
dont()
literally what he did lol
The start is hilarious! 🤣
0:00
2:40 It's so sad when it goes silent, Code Bullet was singing happily before Code Bullet 2 stopped him...
Imagine this as a screensaver in an arcade room or something…
A Tetris game that never stops…
I would invest in that idea
Make it happen now
And just run it off a rasberry pi?
Probably a looped gif of it after running the program yea
*Mental Asylum Escapee talking to himself about spinning shapes.*
My brain *mentaly asylumy escapeese* explodes and -boom- gsbsjslsm
And this just feels like
Spinning shapes
It really is complicated, rotating the shapes. The game works by bundling stuff together. There's a thing called the "Shape" object, which contains information about shapes, and it's made up of multiple "Block" objects, which you have to do some trigonometry for to rotate them around a point, and it's complicated to do properly
CoolCat467 no
@@ljharnish No seriously, I ported this to Python3, and because of a few tiny changes in the way blocks store their positions (instead of being relative to shape objects when they are falling, they know their absolute grid position all the time), when rotating the blocks went everywhere. It must have taken CodeBullet quite a lot of time to get the system working properly if I had so much trouble doing it with a tiny modification. Ironically though, the fix for this issue was quite simple, so never mind I guess. =^._.^=
4:11
Seeing that almost gives me an idea for a new screensaver.
I love that this video's most replayed areas are exclusively at the start with the dance, the end with the final product, and one part in the middle which is a clip from a whole other video.
Alternate title: Australian man cyber bullies himself while playing Tetris
Next video: Australian man cyber bullies Tetris players with AI
*making tetris
I’ve never been more proud of my people
@@aroyaki I would be totally into it :)
@@patricktho6546 Heck yeah man!
16:07 I paused and backed up frame by frame to find it got to 14549 lines cleared, ended up with two empty columns on either side and and the center got so high that the line that was coming next was unable to spawn without ending the run.
Yo GOOD SHIT MATE
Noice
Saw it. Anybody need a capture of it. Tell me
16:07.5
I just slowed the video to 0.25 times speed. much easier xD
Love the beginning
Every time I go back to this... Nostalgia hits different