I know, I'm new. This is my first attempt at programming.
No, I can't tell why... I'm trying to get it to give a random number between 0 and 3 and then make the corresponding move. How could I...
Type: Posts; User: rhodesianhunter
I know, I'm new. This is my first attempt at programming.
No, I can't tell why... I'm trying to get it to give a random number between 0 and 3 and then make the corresponding move. How could I...
I solved all of my compiler errors, but now when I run my program it quits after choosing r or y. Can anyone tell why?
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int...
Ok, I have now worked on it to get this:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int table[4][4] = {{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,0}};
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int table[4][4] = {{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,0}};
int count = 0;
void displayTable(void);
void moveNumbers(void);
Hey everyone,
I am working on a project (likely the same one someone posted about earlier under arrays)
The assignment is to create a 15 - puzzle. At first it is supposed to ask you whether you...