This is how an AI taught itself how to solve a Rubik's Cube.
CGP Grey's video about 'How Machines Learn':
• AI Can't Explain How AI Works
Code Bullet:
/ @codebullet
The AI:
http://deepcube.igb.uci.edu/
(make sure you don't include the s in https if typing it for some reason)