I love how coding KZbinrs reference each other haha. Code Bullet just recommend you a few weeks ago (I've been subscribed to both for a long time).
@realchrishawkes5 жыл бұрын
We all try to get around.
@watchableraven35175 жыл бұрын
Got the like count to PI! Congrats jacob.
@dr.dank57695 жыл бұрын
Hill Climb Racing, Right?
@antonellamorello68334 жыл бұрын
Hby
@sinom5 жыл бұрын
Starting the video with "so that was fake" on April 1st
@domninin5 жыл бұрын
It's funny how Code Bullet shouted you out a week ago and now you independently do the same a week later
@theskyisbluetonight42033 жыл бұрын
In case you are still wondering why up and down are flipped. it's the processing gridding system. it considers positive y in the down direction. draw a line to see that yourself.
@up4life1085 жыл бұрын
Right as a start getting into the theory behind neural nets and maschine learning you give me new material. Very much appreciated!
@elymajdou56685 жыл бұрын
I love how passionate you are about what you’re doing. It is such a good energy and it motivates me to learn more and watch more of your videos. Keep it up, sir. Thank you and good luck.
@SunHunter275 жыл бұрын
Good luck with this project :) some tips: - The center of a face does not need to be aligned along all axis for the cube to be solved. In other words: the green side of the the cubie at the center of the white face is not required to point in the green direction. The same goes for the center cubie you made, but for all its 3 axis. - There are configurations of the rubicks cube that are 'unsolvable'.
@jorgenfischer5 жыл бұрын
Yes, but only if you randomly assign color to different faces. THe main issue i have with the way he is attacking this, is that f.eks: the color-combination of a certain corner will never change. It will always be red, green, yellow. I would have 8 corner pieces, 6 centers, and 12 edges. Color-code them correctly, arrange them correctly and start from there.
@CoxTH5 жыл бұрын
Can we just call the green side the invisible side from now on?
@NStripleseven4 жыл бұрын
CoxTH yup
@yrussq4 жыл бұрын
I'd say this is the most obscure and complex draw routine of the cube i've ever met. Maybe i'm not getting the ingenuity of the solution because of the further ideas of how the solver should process it but for now i'd call it counterintuitive.
@jman5X52 жыл бұрын
Been a long time Code Bullet fan and have found your content recently. Love your enthusiasm and the effort put into all your videos!
@RicoGalassi5 жыл бұрын
Absolutely love watching your enthusiasm and success in coding these programs. Wish I had as much knowledge and skill as you do! Keep on chuggin!
@PanGuy_5 жыл бұрын
"I'll fix that up when I refactor that later" sounds like he'll absolutely never do that but ok
@sorinvestemean96865 жыл бұрын
As a cuber and junior programeer this is so enjoyable. Love you Shifman!
@private-eye5 жыл бұрын
at 11:09 i used: float offset = ( dim * len) / 3; This also works to center the cube...
@samsloot5 жыл бұрын
Why are you (and he) doing it like that? dim = 3, so you are just saying 3* len/3, which is equal to len. Why not just use len as offset, instead of calculating it?
@ffggddss5 жыл бұрын
@@samsloot As I said in my reply to your other comment, dim won't always be 3; it can also be 2, 4, 5, 6, ... for cubes of other sizes. And Hans' formula won't work unless dim is 3, so Coding Train's formula *is* needed for the general case: offset = (dim - 1) * len / 2 Fred
@samsloot5 жыл бұрын
@@ffggddss thank you!
@ffggddss5 жыл бұрын
@@samsloot You're welcome. Of course, for cases other than dim = 3, lots of other parts of this code would have to be re-written, anyway. But that's Coding Train's wheelhouse (or rail yard?), so, no problem! Fred
@zacharymcarthur90135 жыл бұрын
It might have been easier to instead of thinking of white as top yellow as bottom green as front blue back etc. to instead think of white always being opposite yellow. Blue always being opposite green. Red always being opposite orange. There is no real “top” of a Rubik’s cube. “White being top” is just a convention for new cubers to learn to solve the Rubik’s cube. When I learned green was top This also might make implementing the solve easier by allowing the computer to determine the most efficient top. Meaning, white only has a 1/6 chance of being the most efficient cross to solve. Might be a good project for us to implement later or something that happens if you ever decide to refactor this later.
@0cs0255 жыл бұрын
but you also run into the problem like what happened in the video where the colors red and orange are swapped in positions even though they are still opposite to each other, though it would still look like a rubiks cube, it doesn't resemble the actual real life rubiks cube.
@zacharymcarthur90135 жыл бұрын
Joshua Ocso that wouldn’t be a problem as long as you rendered the cube correctly. I agree the first time you have to make sure it resembles a legit cube. However after that the code isn’t going to rewrite itself. It’ll stay that way then Up, down, left, right, front back are variables open for movements. Which is more in line with cubing. U/D/L/R/F/B are moves. Not colors.
@codeline42705 жыл бұрын
Really interesting to see what we can do with lines of codes,never thought a rubik cube can be made through it virtually.Really amazing!
@ffggddss5 жыл бұрын
Super! The start of another journey/adventure I just know I'm gonna love! NB: In the original Rubik's Cubes, ca. 1979-80, the color arrangement differed slightly from the way it is now. At some point, for some mysterious, unknown reason, the yellow & blue faces swapped places. F'rinstance, you could orient the cube with: UP = white, DN = blue FRT = yellow, BAK = green RT = orange, LEFT = red That's still the way I think of the thing. Fred
@fiveoneecho5 жыл бұрын
That was an amazing intro! xD “Ahah!” “...that was fake.”
@shivampoke5 жыл бұрын
Omg
@kupermen55675 жыл бұрын
I have already watched the livestream why am I here XD
@CYXNIGHT5 жыл бұрын
I recognise all of this XD
@kupermen55675 жыл бұрын
Haha yeah
@chromawav81875 жыл бұрын
Same I had an intuition x)
@AleksanderFimreite5 жыл бұрын
hmm, i believe the terminology would be something like: (x, y, z) or (width, height, depth) or (columns, rows, layers)
@anthonytetreau5225 жыл бұрын
I love all the sharing of other youtubers, I have been watching you for well over a year now. Find code bullet and begin watching him since his start. Keep the love going!
@everythingtips26044 жыл бұрын
Best coding video !! Keep it up
@Anik700534 жыл бұрын
Processing is a great platform. ALL THANKS TO YOU for using this and also inspiring us to create great applications. I wish I had known it before.
@tiosam14265 жыл бұрын
Code Bullet is definitely a channel I would recomend with no doubt
@jensBendig4 жыл бұрын
I coded this too, in the 80s on a VIC20! I still love the topic.
@gameglitcher4 жыл бұрын
I tried making a rubix cube with 27 pieces which would all have an initial position and pattern. Each piece will either go up/down or left/right. On each rotation, 8 pieces are moved. Corners can have 8 possible locations with a few rotations to them.. Morale of the story is I need a giant whiteboard to draw out this logic lol.
@malevolantangel94834 жыл бұрын
As soon as the video popped up I immediately though of code bullet!! And then you reference him lol I love his videos and it really drives me to learn more coding and AI related stuff and then love your channel for the explanation on just about every step which helps with how I learn!
@zinsy235 жыл бұрын
When there is something wrong, I love how quickly you tend to figure out the issue! By the way, could you do a challenge on the game arcanoids sometime? I think it would be really cool if you incorporated power-ups as well!
@ffggddss5 жыл бұрын
Yes, he sometimes solves issues in real time; but sometimes, he cuts, takes an unknown time to figure out the problem then restarts the vid with remedy in hand, making it look like it was solved instantly. But this is a plus; it keeps the viewer's train of thought from getting derailed. And all in all, he's quite fast at all this. Fred
@holyshit922 Жыл бұрын
21:00 use your math and you be able to use loops for example in y-fixed and color dwn we have sqrt(2)cos(5*pi/4)*r , -r , sqrt(2)sin(5*pi/4)*r sqrt(2)cos(7*pi/4)*r , -r , sqrt(2)sin(7*pi/4)*r sqrt(2)cos(9*pi/4)*r , -r , sqrt(2)sin(9*pi/4)*r sqrt(2)cos(11*pi/4)*r , -r , sqrt(2)sin(11*pi/4)*r ad we are able to construct the loop
@oofusmcdoofus5 жыл бұрын
Daniel: Makes a program to solve rubiks cube Daniel: I dont know how Java works
@natmath25765 жыл бұрын
I'v recently finished coding a program that can solve a cube in the sameway a humain does it, so this series is going to be really interestin to me
@Toopa885 жыл бұрын
0:28 it's so funny that I coincidentally did the very same thing. My best time is 54 seconds, but right now I learn to do first 2 layers differently so my average has dropped by 30 seconds or so :)
@RobbyBobbyBoy5 жыл бұрын
I've just started to find situations at work where neural networks could be useful but I didn't know how to implement them, so I'm excited to see where this goes!
@Daszkal3 жыл бұрын
I usually refer to the Z-axis as "bays" (vs rows and columns), but I have no idea if that's right or where I picked that up.
@diamondsmasher10 ай бұрын
Depth?
@carloverhamme1635 жыл бұрын
17:58 You're just like a pirate xD "ARR"
@vizionthing5 жыл бұрын
PART 2 PART 2 PART 2 PART 2 PART 2 PART 2 PART 2 this is not binge watching on netflix :(
@AHelpingHand5 жыл бұрын
I've just started learning to program with a CS50 course at edX a couple weeks ago. So while I understand some of the terms, I'm having a hard time understanding the concepts. I have no clue how he knows what to do, or how to express it. And the frustrating part? I can solve a Rubik's cube with one hand in less than two minutes. lol
@PMA_ReginaldBoscoG Жыл бұрын
It's just programming jargon; try to watch videos by Indian CS lecturers. They may help you a lot.
@stanleythehandsome54025 жыл бұрын
This guy would be the most loved teacher ever
@aarond3094 жыл бұрын
Lol I independently found code bullet, then later as I got more interested in programming, found you... I didn’t see his video until now, and I’m not seeing your video until now... crazy how things work out isn’t it?
@g0shig0shi5 жыл бұрын
fantastic teacher! hope to see you soon:) here from japan.
@mutated__donkey58405 жыл бұрын
I heckin love this
@TristanTalismanWisdom5 жыл бұрын
petition for making this guy the president
@XeartyBG5 жыл бұрын
I've failed to find a good rubik's cube simulator for the times when I'm missing mine. It's really enjoyable to watch you make it. I fucking love you! Keep it up!
@exesy54315 жыл бұрын
Lovely video, I got a challenge for you: draw an atom animation! :D
@zarcvdeveloper15655 жыл бұрын
hahahahah. useful for our project. thanks hahaha I learned and had so much fan hehehe, I'm Rubik's Cube Solver tooo for around 6 years
@Shami35 жыл бұрын
Why don't do a Video with Code Bullet? Maybe a Challenge where there is one specific Problem or Task and the one with the best/fastest solution wins :) I would Love to see that
@leonk69505 жыл бұрын
It'd have to be super funny, having shiffman just normally talking in front of his Greenscreen and codebullets avatar jumping around him 😂😂
@vadsavin5 жыл бұрын
Make a video about threads in processing or p5.js. I think, it would be interesting to know how to solve different problems sing threading.
@byon34215 жыл бұрын
thanks for making programming looks fun!!
@gabrieltenorio35175 жыл бұрын
veo estos vides para practicar ingles y al mismo tiempo conocer mas acerca de la logica de programación 😁
@steakiefrags18665 жыл бұрын
Wow im very excited for part 2, i would have never been able to to do thid
@byon34215 жыл бұрын
because of this, i'm starting to love programming. oh god!
@dannyt10003 жыл бұрын
Great video! Thanks, I noticed that you just could write. "float offset = len" because dim=3, so (dim - 1) * len * 0.5 = len
@LandinngGear4 жыл бұрын
Just coming across this and being subscribed to code bullet. Shout out
@JackDjTom65 жыл бұрын
Hey, i just watched your Coding Challenge about the QuadTree... i was wondering if it really makes sense to store points in a Quadtree which was already subdivided. Your goal is to only consider points which are in a certain area, so you lookup all the points of the quads which are within this boundary/area, but if you store points in the quadtrees which was already subdivided, for example the one which covers the whole width and height of your canvas, you also lookup points there which don't belong to this area. So shouldn't you remove the points from the quadtree which will is about to be subdivided and pass those points to the childrens, so they store those points. I'm sorry for my bad english, but i hope you know what i mean
@MaxPicAxe5 жыл бұрын
I think he noticed this mistake after uploading this video, if I remember there were a lot of comments about it. But why comment here xD
@TheAstroguypasa5 жыл бұрын
You are a comedian. I always enjoy your videos and learn a lot in the process. :-)
@lucase60775 жыл бұрын
Hey Dan, I'm currently going through your "Programming with Text" playlist but I encountered a problem on this video: "1.4: Getting Text from User: Loading a Text File". My code works fine and is shown on the console perfectly but the page won't show it (the page is just blank). Do you know why this is happening? I'm running a node HTTP server as you showed in a previous video in the same playlist. I'd really like to continue watching the next videos but I don't want to skip this lesson. Could you help me out?
@celadon20485 жыл бұрын
I've been working on my own Rubik's cube app in JS, and it's cool to see your approach to it. If you want to draw inspiration from it or critique it, it's on wayofmath.com (no ads, so no revenue). I made it in three.js. It is less about simulating the cube and more about teaching how to solve it. I want to add the ability for the user to use their webcam to input their cube, and be shown how to solve their particular case. So I've been watching your color/motion detection videos to figure that out.
@christiant.g.9945 жыл бұрын
Just a quick question: is this a solver as well, and if so, how do you plan to program a solver if you barely know how to solve it yourself? Nothing personal, but the methods commonly used for machine solving are quite complex, and I think you'd need a fairly deep understanding of how the cube works to program that from scratch.
@TheCodingTrain5 жыл бұрын
Excellent question! There is a very likely possibility I will fail. I'm hoping to try to apply machine learning methods .. so rather than follow a known algorithm Im going to try to teach the computer to find a solution using a combination of genetic algorithms and neural networks.
@christiant.g.9945 жыл бұрын
@@TheCodingTrain Don't really know much about implementing neural networks in coding, so hopefully I will have a lot to learn. Would be really awesome if you manage to build a solver like this :D
@JarppaGuru3 жыл бұрын
9:14 not smart would say offset is len becouse it rotate center of first box
@cod-newbie91665 жыл бұрын
Will it be wise to use your intelligence series to start machine learning or do I need prerequisites
@S197Bryan5 жыл бұрын
I love this, especially that you're using Java cause I'm actually learning Java now and this is helpful
@jakubsebek5 жыл бұрын
There are some differences between Java and Processing tho
@S197Bryan5 жыл бұрын
@@jakubsebek Yeah I noticed that. But the syntax is still very close which is great cause I am able to understand everything he is doing. I want to get into processing but I'll do it when I learn more java.
@hankmoody6665 жыл бұрын
21:10 "can't believe how much time this is taking" - *Uses 20 minutes to code the entire thing*. I would probably use several days. But i'm a sub-28 cuber with a pb of 19 though :)
@josephswietlik70135 жыл бұрын
@Hank Moody I feel the same way.
@CaelVK5 жыл бұрын
This is an edited livestream, he did it in a few hours actually (Still quite amazing imo). You can find the full livestream in the channel
@KommentarspalteBosetti5 жыл бұрын
wish you millions and millions
@comeonfight56625 жыл бұрын
When you make a constructor in Java, you don't need a different variable name than your classe's attribute. Instead, you can reference the classe's attribute variable using "this". So in this particular example you can use this.len = len; instead of changing the parameter name to len_. I need to point out that the work you are doing is great and inspiring. You are the reason I started learning Genetic Algorithms and Neural Networks.
@x-lightsfs56815 жыл бұрын
I want to try to make a controlable version. In your part2, what controls will you use?
@thomasoc.20515 жыл бұрын
Yeah i love CODE BULLET!!
@geoffwagner4935 Жыл бұрын
These new Raspberry Pi 5 are hardcore. I have my youtube at 1080 for coding train and processing open on a 4k tv. this 3d cube may be smoother than my nvidia 770. these things are amazing.
@geoffwagner4935 Жыл бұрын
My regular gaming desktop is usually never off. the last 30 days it's almost never been on over the Raspberry 5.
@HeroWarsSeymour2 жыл бұрын
Very nice, I have to learn Java for university and I decided to look for something more interesting that we have to do at university and I found your video.
@AbhishekJain-zu1uf5 жыл бұрын
Can't we just represent each colour by an integer 1-6 and let our Rubik's cube object be represented by a collection of 6 3x3 matrices in a specific order. I guess this will make it easier to feed it through a neural network and also reduce the code size.
@christiant.g.9945 жыл бұрын
Definitely is! I did that for a 2x2-cube simulation once.
@TheCodingTrain5 жыл бұрын
Yes, this is a great idea and I'd like to refactor it this coming Wednesday? Can you say more about how you envision the six 3x3 matrices as different than my 3x3x3 array?
@AbhishekJain-zu1uf5 жыл бұрын
@@TheCodingTrain Let's say that we plan to make the matrix in the following order: {Blue, Red, Green, Orange, White, Yellow} now we can replace those colours by 3x3 matrices with different integers representing each colour giving us a matrix of shape 6x3x3 ready to be fed through a neural net. Now we can use Convnet either by feeding the same 6x3x3 array or by reshaping it into a 6x9 array.
@kravenoff425 жыл бұрын
Would it be maybe Rows, Columns, and Tables?
@fishylr50584 жыл бұрын
hello love this vid thanks for starting me to do coding
@harsh51394 жыл бұрын
Plot twist : Code Bullet is actually the Coding Train
@pianothrone79654 жыл бұрын
Don’t mind me just leaving a timestamp to where I am at 6:16
@NStripleseven4 жыл бұрын
Complex J big brain
@1Eagler4 жыл бұрын
Have y done fence animation?
@sql645 жыл бұрын
781-0 Like Ratio, this just sows how good of a youtuber you are. :) keep doing what youre doing
@TheCodingTrain5 жыл бұрын
I've got a dislike now thank goodness!
@raghavkamath5 жыл бұрын
The Coding Train Well sir don't worry about those unnecessary dislikes, use them positively to work harder next time :-)
@jorrr90962 жыл бұрын
20:26 me coding in everyday life 😂
@VivaldoRoqueSpeedCuber5 жыл бұрын
Waiting for the project of the rubiks cube to be complete. I like this puzzle explodes my mind more with programming a beauty. My Record is 13s. But my average is 19s to 23s
@JJCUBER5 жыл бұрын
APRIL FOOOOLLLLS!! He isn’t gonna change the inside colors 🤫😈
Can you make a videoplayer like youtube with dynamic auto adapting?
@jhonlima98025 жыл бұрын
Que buen vídeo...
@Victor_Marius5 жыл бұрын
When the next video will be? I am curious how you could do the rotations by dragging your mouse (the step were I left a year ago with this project based on html and css)
@TheCodingTrain5 жыл бұрын
Going to try to do the next step on Wednesday this week!
@terrencecoccoli5245 жыл бұрын
this guy is awesomely smart
@pollockfamily79633 жыл бұрын
Cool, now make a four by four
@neelronanki17644 жыл бұрын
Half an hour...well okay I do it in 10 seconds but you have a Rubiks brand so I don't blame you(great program btw)
@nileshgurung94375 жыл бұрын
Awesome🤗
@manbirjudge84154 жыл бұрын
I came on this video after taking the idea from the Code Bullet channel. And who knows that he also creates its AIs in processing
@tusharhalder644 жыл бұрын
The coding train:lets take G as 1 Newton:Am I a joke to you?
@gazehound5 жыл бұрын
code bullet and shiffman! wholesome
@jhonathanmauriciolatorre60955 жыл бұрын
Great video.
@person41193 жыл бұрын
when solving yellow is on top but when scrambling white is on top
@grainfrizz5 жыл бұрын
Dan I was hoping you'd put the Coding Train logo/icon on the middle piece of the white face. I tried to Super Chat it but there was a problem with Google taking my credit card. Anyway, love the content as always.
@TheCodingTrain5 жыл бұрын
Oh! Fun idea, maybe I'll do that in the next part.
@m_ko5 жыл бұрын
Great bro that was amazing
@itz_adi.g4 жыл бұрын
Which IDE do you u use for your programming bro??
@bobbob12785 жыл бұрын
Is processing and p5.js the samething?Can you do a video on it please?
@sql645 жыл бұрын
p5.js is a javascript library. Processing is a java development enviorment.
@TheCodingTrain5 жыл бұрын
I did one! kzbin.info/www/bejne/d57PcpyBqM6sZtE
@yoavshati5 жыл бұрын
1:08 That's actually an april fools joke. He took a 15x15 and restickered it to look like that The actual records are 17x17 (now mass produced), 22x22, and 33x33
@TylerDunphy5 жыл бұрын
It was actually a 13x13 resticker mod
@Commander675 жыл бұрын
Is this only possible in Java or can it be done in C++ as well?