Coding Challenge #142: Rubik's Cube Part 1

preview_player
Показать описание


Other Parts of this Challenge:

References:

Videos:

Related Coding Challenges:

Timestamps:
0:00:00 Introduction
0:01:50 Code! Creating the cube
0:07:56 Adding a Camera With PeasyCam
0:11:44 Adding Colors

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#rubikscube #rotationmatrix #peasycam #simulation #processing
Рекомендации по теме
Комментарии
Автор

I love how coding YouTubers reference each other haha. Code Bullet just recommend you a few weeks ago (I've been subscribed to both for a long time).

jmanh
Автор

Starting the video with "so that was fake" on April 1st

sinom
Автор

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.

theskyisbluetonight
Автор

It's funny how Code Bullet shouted you out a week ago and now you independently do the same a week later

domninin
Автор

Right as a start getting into the theory behind neural nets and maschine learning you give me new material. Very much appreciated!

uplife
Автор

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.

elymajdou
Автор

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.

yrussq
Автор

Can we just call the green side the invisible side from now on?

CoxTH
Автор

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!

RicoGalassi
Автор

"I'll fix that up when I refactor that later"

sounds like he'll absolutely never do that but ok

PanGuy_
Автор

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'.

SunHunter
Автор

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

ffggddss
Автор

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.

zacharymcarthur
Автор

hmm, i believe the terminology would be something like:
(x, y, z) or (width, height, depth) or (columns, rows, layers)

AleksanderFimreite
Автор

That was an amazing intro! xD

“Ahah!”


“...that was fake.”

fiveoneecho
Автор

Been a long time Code Bullet fan and have found your content recently. Love your enthusiasm and the effort put into all your videos!

jmanX
Автор

I have already watched the livestream why am I here XD

kupermen
Автор

at 11:09 i used: float offset = ( dim * len) / 3;
This also works to center the cube...

private-eye
Автор

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!

codeline
Автор

As a cuber and junior programeer this is so enjoyable. Love you Shifman!

sorinvestemean