Plymouth ELEC351 Group T
/
ELEC351_Group_T
FINAL PROJECT isn't it
Fork of ELEC351 by
Moves.cpp@56:bc5345bc6650, 2018-07-16 (annotated)
- Committer:
- thomasmorris
- Date:
- Mon Jul 16 10:51:47 2018 +0000
- Revision:
- 56:bc5345bc6650
Moves added to serial;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 56:bc5345bc6650 | 1 | //This is where the algorithms movements will be defined |
thomasmorris | 56:bc5345bc6650 | 2 | #include "Moves.hpp" |
thomasmorris | 56:bc5345bc6650 | 3 | |
thomasmorris | 56:bc5345bc6650 | 4 | int side = 0; //Sides |
thomasmorris | 56:bc5345bc6650 | 5 | void White_Cross() |
thomasmorris | 56:bc5345bc6650 | 6 | { |
thomasmorris | 56:bc5345bc6650 | 7 | |
thomasmorris | 56:bc5345bc6650 | 8 | } |
thomasmorris | 56:bc5345bc6650 | 9 | |
thomasmorris | 56:bc5345bc6650 | 10 | |
thomasmorris | 56:bc5345bc6650 | 11 | void White_Cross_Position() |
thomasmorris | 56:bc5345bc6650 | 12 | { |
thomasmorris | 56:bc5345bc6650 | 13 | if(CubeMap[1][0][1] == White )//Top middle |
thomasmorris | 56:bc5345bc6650 | 14 | { |
thomasmorris | 56:bc5345bc6650 | 15 | //rotate 180 |
thomasmorris | 56:bc5345bc6650 | 16 | } |
thomasmorris | 56:bc5345bc6650 | 17 | if(CubeMap[1][1][0] == White )//Middle Left |
thomasmorris | 56:bc5345bc6650 | 18 | { |
thomasmorris | 56:bc5345bc6650 | 19 | //rotate 90 |
thomasmorris | 56:bc5345bc6650 | 20 | } |
thomasmorris | 56:bc5345bc6650 | 21 | if(CubeMap[1][1][2] == White )//Middle Right |
thomasmorris | 56:bc5345bc6650 | 22 | { |
thomasmorris | 56:bc5345bc6650 | 23 | //rotate 0 |
thomasmorris | 56:bc5345bc6650 | 24 | } |
thomasmorris | 56:bc5345bc6650 | 25 | if(CubeMap[1][2][1] == White )//Bottom Middle |
thomasmorris | 56:bc5345bc6650 | 26 | { |
thomasmorris | 56:bc5345bc6650 | 27 | //rotate 270 |
thomasmorris | 56:bc5345bc6650 | 28 | } |
thomasmorris | 56:bc5345bc6650 | 29 | } |
thomasmorris | 56:bc5345bc6650 | 30 | void White_Cross_Orientate() |
thomasmorris | 56:bc5345bc6650 | 31 | { |
thomasmorris | 56:bc5345bc6650 | 32 | |
thomasmorris | 56:bc5345bc6650 | 33 | } |
thomasmorris | 56:bc5345bc6650 | 34 | void White_Centre_Swap() |
thomasmorris | 56:bc5345bc6650 | 35 | { |
thomasmorris | 56:bc5345bc6650 | 36 | |
thomasmorris | 56:bc5345bc6650 | 37 | } |
thomasmorris | 56:bc5345bc6650 | 38 | |
thomasmorris | 56:bc5345bc6650 | 39 | void White_Corners() |
thomasmorris | 56:bc5345bc6650 | 40 | { |
thomasmorris | 56:bc5345bc6650 | 41 | |
thomasmorris | 56:bc5345bc6650 | 42 | } |
thomasmorris | 56:bc5345bc6650 | 43 | void Middle_Layer() |
thomasmorris | 56:bc5345bc6650 | 44 | { |
thomasmorris | 56:bc5345bc6650 | 45 | |
thomasmorris | 56:bc5345bc6650 | 46 | } |
thomasmorris | 56:bc5345bc6650 | 47 | void Top_Cross() |
thomasmorris | 56:bc5345bc6650 | 48 | { |
thomasmorris | 56:bc5345bc6650 | 49 | |
thomasmorris | 56:bc5345bc6650 | 50 | } |
thomasmorris | 56:bc5345bc6650 | 51 | void Top_Layer() |
thomasmorris | 56:bc5345bc6650 | 52 | { |
thomasmorris | 56:bc5345bc6650 | 53 | |
thomasmorris | 56:bc5345bc6650 | 54 | } |
thomasmorris | 56:bc5345bc6650 | 55 | void Corner_Positioning() |
thomasmorris | 56:bc5345bc6650 | 56 | { |
thomasmorris | 56:bc5345bc6650 | 57 | |
thomasmorris | 56:bc5345bc6650 | 58 | } |
thomasmorris | 56:bc5345bc6650 | 59 | void Edge_Orientation() |
thomasmorris | 56:bc5345bc6650 | 60 | { |
thomasmorris | 56:bc5345bc6650 | 61 | |
thomasmorris | 56:bc5345bc6650 | 62 | } |