-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCube.hpp
More file actions
44 lines (36 loc) · 813 Bytes
/
Cube.hpp
File metadata and controls
44 lines (36 loc) · 813 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
#ifndef CUBE_H_INCLUDED
#define CUBE_H_INCLUDED
#include "CubeMove.hpp"
#include <vector>
class Cube
{
private:
char state[6][9];
char state_tmp[6][9];
int energy;
public:
Cube();
Cube(Cube &&);
Cube(const Cube &);
Cube &operator=(Cube &&);
Cube &operator=(const Cube &);
~Cube();
void Rotate_right();
void Rotate_back();
void Rotate_front();
void Rotate_left();
void Rotate_up();
void Rotate_down();
void Rotate_right_ac();
void Rotate_back_ac();
void Rotate_front_ac();
void Rotate_left_ac();
void Rotate_up_ac();
void Rotate_down_ac();
void Rotate(const CubeMove &move);
void Rotate(const std::vector<CubeMove> &moves);
int Energy() const;
void tmp();
void View();
};
#endif // CUBE_H_INCLUDED