pygame is
Simple DirectMedia Layer is
Site Swing
Rubiks Cube

Rubiks Cube - 1.15

Krzysztof Król (krolu)



Here's my first program in Python using PyGame. It calls "kostka", that means cube. It's a program for searching the solution to Rubik's Cube. It works like this: You program some combination of movements by clicking on arrows arround the spread-ed cube, and then click the Run Test button. After that, program will shuffle the Rubik's cube and begin to do every combination one by one from the list of movements that you program earlier. It looks if the puzzle is solved or after full run is the combination of blocks on the cube is identical with the start combination. If it is then the program will tell you how many movements have been before the puzzle had looped, and if it is not the whole loop start again. The object of that puzzle is to find out is there any combination that repeated over and over will eventually solve the Rubik's Cube. I wish you lots of fun with this program and good luck.


The previous version was mising couple of files and didnt execute. So here's one more time a working version :)


Home Page:


click to view original size


Rubiks Cube - 1.15 - Aug 6, 2007
Rubiks Cube - 1.1 - Aug 5, 2007
Rubiks Cube - 1.0 - Jul 30, 2007 account Comments

If you wish to leave a comment with your account, please sign in first.

December 28, 2007 1:54pm - Dylan J. Raub - nickname: (dylanjraub) - 2/5
I'm sorry, but it doesn't make any sense... How do you solve it again?
August 3, 2007 12:24pm - Krzysztof Król - nickname: (krolu) - 3/5
sorry, but i dont get you (Rob McCrea). Could you be more specific, because you wrote about couple of pieces on edges and wrote that it think it is solved than you are very wrong. Read on the pagewhat this program is realy for and than submit that it doesn't work. It's looking for possible solution of the cube for the commands you have entered. It doesnt have to end with solution.
August 3, 2007 2:26am - Rob McCrea - nickname: (mccrea) - 2/5
Lemme sumup -- if the program thinks it solved it, so be it. Too bad the graphical representation is pure fantasy.
August 3, 2007 2:24am - Rob McCrea - nickname: (mccrea) - 2/5
It doesn't work. Had three of the same edge pieces, several edge pieces that were the same color on both it's faces, even had a corner piece that was yellow on all it's 3 faces. Tried to make a screenshot, but I deleted it after spending serveral minutes trying to annotate all the errors. *shrug*

Nice try :)
July 30, 2007 1:29pm - Ian Mallett - nickname: (geometrian) - 3/5
Very nice, worked first try. Good UI.
July 30, 2007 1:24pm - Ian Mallett - nickname: (geometrian)
Nooooooooooooooooooo! I've been trying to make a program just like that! Oh well, you beat me to it. Good job.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)