Uploaded May 2026 | Updated September 2026, 3 weeks ago
My attempt at solving the 3x3 Rubik's cube (by programming the computer to do it for me).
Note: in the evaluation function at 22:32 I mention that it falls back to the 'Greedy' evaluator shown previously. However, I forgot that I had made a small change to that function, which is to give a bonus to correctly oriented corners. Sorry for the oversight!
Links:
Support my work (and get early access to new projects): patreon.com/SebastianLague
Source code: github.com/SebLague/Rubiks-Cube
Follow-up video: youtu.be/Eysf6-E3ino?is=Fu6gW1WFUXyDTQoa
Resources and credits:
en.wikipedia.org/wiki/Optimal_solutions_for_the_Rubik%27s_Cube
raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/RubiksCube.txt
Chapters:
00:00 Creating the Cube
02:00 Rotation Time!
04:39 Binary State
08:15 Making Moves
12:47 Search and Optimization
15:34 The Greedy Solver
17:53 The Sandwich Solver
20:21 The Oriented Solver
23:39 Final Thoughts
My attempt at solving the 3x3 Rubik's cube (by programming the computer to do it for me).
Note: in the evaluation function at 22:32 I mention that it falls back to the 'Greedy' evaluator shown previously. However, I forgot that I had made a small change to that function, which is to give a bonus to correctly oriented corners. Sorry for the oversight!
Links:
Support my work (and get early access to new projects): patreon.com/SebastianLague
Source code: github.com/SebLague/Rubiks-Cube
Follow-up video: youtu.be/Eysf6-E3ino?is=Fu6gW1WFUXyDTQoa
Resources and credits:
en.wikipedia.org/wiki/Optimal_solutions_for_the_Rubik%27s_Cube
raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/RubiksCube.txt
Chapters:
00:00 Creating the Cube
02:00 Rotation Time!
04:39 Binary State
08:15 Making Moves
12:47 Search and Optimization
15:34 The Greedy Solver
17:53 The Sandwich Solver
20:21 The Oriented Solver
23:39 Final Thoughts
![RPG graphics E04: Walk animation [Blender]
In this episode we create a simple walk animation for our character.
See Brackeys channel for the programming half of this series: https://www.youtube.com/user/Brackeys
Walk animation reference sheet:
https://www.dropbox.com/s/0ioobg4gfi2wys4/Walk%20ref.jpg?dl=0
Download starting rigged character here:
https://www.dropbox.com/s/zpa8d1z6po8z0uz/Player%20weight.blend.zip?dl=1
Download end-of-video result here:
https://www.dropbox.com/s/pkm46h431r9akss/Player%20walk%20anim.zip?dl=1
RPG gameplay programming playlist:
https://www.youtube.com/playlist?list=PLPV2KyIb3jR4KLGCCAciWQ5qHudKtYeP7
Support the creation of more gamedev tutorials:
https://www.patreon.com/SebastianLague RPG graphics E04: Walk animation [Blender]](https://i.ytimg.com/vi/gFf5eGCjUUg/mqdefault.jpg)


![[xkcd jam] Spirit Rover: Behind the Scenes
This is a behind the scenes/post-mortem video for my entry to the 2017 xkcd jam, which took place over 3 days.
Play the game: https://sebastian.itch.io/spirit-rover
Source: https://github.com/SebLague/Spirit-Rover
Comic: https://xkcd.com/695/
Support the creation of gamedev tutorials:
https://www.patreon.com/SebastianLague
https://www.paypal.me/SebastianLague [xkcd jam] Spirit Rover: Behind the Scenes](https://i.ytimg.com/vi/hGiNRlmpids/mqdefault.jpg)


![[Unity] Procedural Planets (E05: shader)
In this episode we use shadergraph to create a simple shader for our planet.
Get the project files for this episode:
http://github.com/SebLague/Procedural-Planets
Support the creation of more tutorials and get early access to new videos: https://www.patreon.com/SebastianLague [Unity] Procedural Planets (E05: shader)](https://i.ytimg.com/vi/itnLOlQ2QFo/mqdefault.jpg)



![RPG graphics E02: Character rig [Blender]
In this episode we create a rig for the character. In the following episode the mesh deformations will be improved using weight painting.
See Brackeys channel for the programming half of this series: https://www.youtube.com/user/Brackeys
Download the starting model here:
https://www.dropbox.com/s/828rpnxs0oc0u70/Player%20model.zip?dl=1
Download rigged character here:
https://www.dropbox.com/s/rida4ptr3k1ptvt/Player%20rig.blend.zip?dl=1
RPG gameplay programming playlist:
https://www.youtube.com/playlist?list=PLPV2KyIb3jR4KLGCCAciWQ5qHudKtYeP7
Support the creation of more gamedev tutorials:
https://www.patreon.com/SebastianLague RPG graphics E02: Character rig [Blender]](https://i.ytimg.com/vi/jp_SqjB0468/mqdefault.jpg)