is there any other way of doing this?
i mean the concept of moving the number with the blank...this is one of my friend's concept of moving the number, I couldnt use it due to the plagarism......
Type: Posts; User: tianwu
is there any other way of doing this?
i mean the concept of moving the number with the blank...this is one of my friend's concept of moving the number, I couldnt use it due to the plagarism......
11156
this is the example... Hope someone can help me thank you :(
eg: i have a 4x4 2D-array, with all of the random generate number inside it and the 0 number in the array will be the blank, and i wish to swap the number which i want to move with 0, how do i write...
how if i want to make it only 4by4 2D-array? i tried your code it works but it doesn't print me a 4by4 2D-array... could you give an example of 2d 4x4 array code? thank you
what i mean is, let say now im doing my 4by4 array,and then i want to generate the number from 0 - 15 without repeating, how do i generate it in C?
everytime i restart the program it will be...
howi if it's 2d- array?
how do i shuffle it??
hi there, it doesn't work for me :(
Is there any other method that can randomly generate the unique number(no need in ascending or descending order) just messy and put inside 4 by 4 array...
beside...
my program is about the sliding puzzle game...
Firstly, I need to generate a random number from 0-15 randomly and each of them are unique(no repeat) assign into a 2D-array..
#include <stdio.h>...