-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
80 lines (74 loc) · 2.64 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Include the source files for three different Rubik's Cube implementations
#include "Prototype/RubiksCube3dArray.cpp"
#include "Prototype/RubiksCube1dArray.cpp"
#include "Prototype/RubiksCubeBitboard.cpp"
// Bring the entire C++ Standard Library namespace into scope
using namespace std;
// Main function, the entry point of the program
int main() {
// // Object Creation and Printing for RubiksCube3dArray
// RubiksCube3dArray Objectof3darray;
// Objectof3darray.print();
//
// // Object Creation and Printing for RubiksCube1dArray
// RubiksCube1dArray Objectof1darray;
// Objectof1darray.print();
//
// // Object Creation and Printing for RubiksCubeBitboard
// RubiksCubeBitboard ObjectofBitboard;
// ObjectofBitboard.print();
//
//// Testing for RubiksCube3dArray
//
// if(Objectof3darray.isSolved()) cout << "SOLVED\n";
// else cout<< "NOT SOLVED\n";
//
// // Generate random shuffle moves and print them for RubiksCube3dArray
// vector<RubiksCube::MOVE> movesToShuffle3dArray = Objectof3darray.randomShuffleCube(2);
// for (auto move: movesToShuffle3dArray)
// {
// cout << Objectof3darray.getMove(move) << " ";
// }
// cout << "\n";
//
// // Print the cube's state after shuffling and check if it's solved
// Objectof3darray.print();
// if(Objectof3darray.isSolved()) cout << "SOLVED\n";
// else cout<< "NOT SOLVED\n";
//
//// (( Testing for RubiksCube1dArray ))
//
// if(Objectof1darray.isSolved()) cout << "SOLVED\n";
// else cout<< "NOT SOLVED\n";
//
// // Generate random shuffle moves and print them for RubiksCube1dArray
// vector<RubiksCube::MOVE> movesToShuffle1dArray = Objectof1darray.randomShuffleCube(2);
// for (auto move: movesToShuffle1dArray)
// {
// cout << Objectof1darray.getMove(move) << " ";
// }
// cout << "\n";
//
// // Print the cube's state after shuffling and check if it's solved
// Objectof1darray.print();
// if(Objectof1darray.isSolved()) cout << "SOLVED\n";
// else cout<< "NOT SOLVED\n";
//
//// (( Testing for RubiksCubeBitboard ))
//
// if(ObjectofBitboard.isSolved()) cout << "SOLVED\n";
// else cout<< "NOT SOLVED\n";
//
// // Generate random shuffle moves and print them for RubiksCubeBitboard
// vector<RubiksCube::MOVE> movesToShuffleBitboard = ObjectofBitboard.randomShuffleCube(3);
// for (auto move: movesToShuffleBitboard)
// {
// cout << ObjectofBitboard.getMove(move) << " ";
// }
// cout << "\n";
//
// // Print the cube's state after shuffling and check if it's solved
// ObjectofBitboard.print();
// if(ObjectofBitboard.isSolved()) cout << "SOLVED\n";
// else cout<< "NOT SOLVED\n";
}