Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Rubik's Cube Part 2

Coding Train via YouTube

Overview

Dive into the second part of a coding challenge focused on simulating a Rubik's Cube using matrix operations. Learn how to represent each cubie in a matrix, apply rotations to the cube's faces, and implement a separate Face class. Explore techniques for finding and coloring cubies, updating their positions, and adding directional turns. Follow along as the code is refactored and tested to ensure proper functionality. Gain insights into 3D rendering, matrix multiplication, and rotation matrices while working on this engaging project.

Syllabus

Introduction.
Continuing From Part 1.
Representing Each Cubie In a Matrix.
Finding Each Cubie.
Applying Rotation.
Coloring The Faces.
Updating The Positions.
Adding Directions For Each Turn.
Testing If Everything Works.

Taught by

The Coding Train

Reviews

Start your review of Rubik's Cube Part 2

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.