-
Rubiks cube
Wasn't sure where to put this, since it really isn't a game, so I put it here.
I just finished a console based rubiks cube program and need some testing and feedback. Please let me know if you find any bugs or if you see a way to improve (besides updating from console to graphics :D ) Thanks!
Hopefully from here I can write a program that SOLVES the cube...
-
Good job for the most part, i haven't rlly looked at the actual code yet, but as far as use of the program its done fairly well. I would space the cursor down one more line, and perhaps use l,r,u,d or lft,rgt,up,dwn instead of rl, rr, rd, ru, etc.
Generally well done, however.
-
There seems to be a problem, when I "mixed" the cube it ended up having an edge cell with two reds colors (You know how there are cells with 3 colors (corners), cells with 2 colors (edges), and cells with one color (centers)... well its impossible to have an edge with two of the same color (unless you take off the stickers then place them back on).
Remember, when you move the "colors" on one side of the cube, your also moving the colors on the adjacent face. Perhaps you might want to have a cell object that the side class will use instead of storing individual colors.
-
Ack, you are absolutely right! I completely forgot about needing to "twist" the adjacent untouched side when turning one of the outside columns/rows.
Hmmmm... need to think of the best way to fix that without changing the code TOO much... otherwise your cell object might be the best bet...
And RoD, you're right about not needing the letter r to rotate, I'll get rid of that when I fix the above problem.
-
when rotating a row or column don't all four faces rotate, not just the one, or the one and the adjacent faces? It's been so long since I played this game I forget how many different colored faces there are (6, a different color for each face of the cube, or some other number.)