Rubiks Cube Program

I am supposed to write a program that does the following: write a program that prompts the user to input the side of the Rubik's Cube they wish to rotate. Use the users response to rotate the Rubik's Cube by calling rotateSideCW( user_response );
Your program should prompt the user for 10 such moves, after which the program will
terminate gracefully.

Upon completion, the program will let you know if you have correctly solved the Rubik's Cube. When completed, you should be able to successfully solve the Rubik's Cube.

Any help with this would be great!

#include "RubiksCube.h"
#include <iostream>
#include <cstdlib>

using namespace std;

string front
string back
string up
string down
string left
string right
string side

void solution()
{
// HINTS:
// rotateSideCW( side );
cout << "What side of the Rubik's Cube do you wish to rotate?";
cin >> side;

rotateSideCW(side);

if (front) == GREEN

if (back) == BLUE

if (up) == WHITE

if (down) == YELLOW

if (left) == ORANGE

if (right) == RED

then
This is a huge undertaking.
The only thing I would recommend is to make most of the program object-oriented. For example, make a Side a container for three Cubie objects.

Personally, I enjoy solving Rubiks Cube. For the record I can solve it in about 20 seconds. However, I have never gotten around to making a program to solve a Rubiks Cube. I have made a chess engine which uses a search tree.
You're going to need to search through a tree of Cube moves to solve the cube.
I'm not sure exactly what your assignment is--if there is more information I could help you further.

Best,
theturk1234
Topic archived. No new replies allowed.