Question: How do you create a 3x3 grid using a 2d array. In that array will be numbers 1-8 then the last slot will be blank.
How do you create a 3x3 grid using a 2d array. In that array will be numbers 1-8 then the last slot will be blank.
Then how do I mix up the grid. It requires Grid, blank, dimensions, and the difficulty value which comes from the getDifficulty function.
int getDifficulty(int argc, char *argv[]){ return strtol(argv[2], NULL, 10); //Number of Rounds to Play }
void initGrid(int ar[][], int bla[]){ int x; for(int i=0; i void randomizeGrid(int iterations){ //Your Code Here //You Must call the following functions here: //getOptions(direction, blank, GRIDY, GRIDX); //makemove(randomchoice(direction), grid, blank, GRIDY, GRIDX); //} }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
