-
Notifications
You must be signed in to change notification settings - Fork 0
/
CubeDefine.h
48 lines (42 loc) · 1.37 KB
/
CubeDefine.h
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
//
// Created by youdonghai on 14/10/16.
//
#ifndef CUBE_CUBEDEFINE_H
#define CUBE_CUBEDEFINE_H
#include <stdint.h>
enum Color: uint8_t {
U, R, F, D, L, B
};
enum Corner: uint8_t {
URF, UFL, ULB, UBR, DFR, DLF, DBL, DRB
};
enum Edge: uint8_t {
UR, UF, UL, UB, DR, DF, DL, DB, FR, FL, BL, BR
};
/**
* |************|
* |*U1**U2**U3*|
* |************|
* |*U4**U5**U6*|
* |************|
* |*U7**U8**U9*|
* |************|
* ************|************|************|************|
* *L1**L2**L3*|*F1**F2**F3*|*R1**R2**F3*|*B1**B2**B3*|
* ************|************|************|************|
* *L4**L5**L6*|*F4**F5**F6*|*R4**R5**R6*|*B4**B5**B6*|
* ************|************|************|************|
* *L7**L8**L9*|*F7**F8**F9*|*R7**R8**R9*|*B7**B8**B9*|
* ************|************|************|************|
* |************|
* |*D1**D2**D3*|
* |************|
* |*D4**D5**D6*|
* |************|
* |*D7**D8**D9*|
* |************|
*/
enum Facelet: uint8_t {
U1, U2, U3, U4, U5, U6, U7, U8, U9, R1, R2, R3, R4, R5, R6, R7, R8, R9, F1, F2, F3, F4, F5, F6, F7, F8, F9, D1, D2, D3, D4, D5, D6, D7, D8, D9, L1, L2, L3, L4, L5, L6, L7, L8, L9, B1, B2, B3, B4, B5, B6, B7, B8, B9
};
#endif //CUBE_CUBEDEFINE_H