-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
60 lines (51 loc) · 1004 Bytes
/
Copy pathmain.cpp
File metadata and controls
60 lines (51 loc) · 1004 Bytes
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
#include <Rubix.hpp>
#include <parsing.hpp>
#include <gen.hpp>
int main(int argc, char *argv[])
{
Rubix *myRubix = new Rubix();
Parsing *myParsing;
Gen *myGen;
int i = 0;
if (argc == 2)
{
std::string str;
while (argv[1][i])
{
str.push_back(argv[1][i]);
i++;
}
myGen = new Gen();
myGen->run_mix(str);
/* myParsing = new Parsing();
try
{
myParsing->run_lex(str);
}
catch (Parsing::ClassException & e)
{
std::cout << e.what() << std::endl;
}
std::cout << myParsing->to_string();*/
}
else
{
std::cout << "Error" << std::endl;
}
// myRubix->action_R();
// myRubix->action_U();
// myRubix->action_U();
// myRubix->action_UB();
// myRubix->action_D();
// myRubix->action_DB();
// myRubix->action_R();
// myRubix->action_RB();
// myRubix->action_L();
// myRubix->action_LB();
// myRubix->action_F();
// myRubix->action_FB();
// myRubix->action_B();
// myRubix->action_BB();
std::cout << myGen->get_rubix()->print_faces();
return (0);
}