/* Authors: Tanish Bhongade and RaZe */ #include #include #include #include "furi_hal_random.h" #include #include #include "scrambler.h" //6 moves along with direction char moves[7]= {"RUFBLD"}; char dir[4]={" 2'"}; //Scramble length const int SLEN=10; //Structure which holds main scramble struct GetScramble{ char mainScramble [25][3]; };struct GetScramble a;//Its object //Function prototypes to avoid bugs void scrambleReplace (); void genScramble (); void valid (); int getRand (int upr,int lwr); char *printData (); void writeToFile (); //Main function /* int main(){ genScramble ();//Calling genScramble scrambleReplace();//Calling scrambleReplace valid();//Calling valid to validate the scramble printData ();//Printing the final scramble //writeToFile();//If you want to write to a file, please uncomment this return 0; } */ void genScramble (){ //Stage 1 for(int i=0; i