- The game is created using c language.
Try out HERE
-
This is a typical game created using C language.
-
This game is easy to play.
-
This game is has a 3 X 3 matrix type format.
- User Should use w,a,s&d keys.
- w is used for Moving the values up,
- s is used for Moving the values down,
- a is used for Moving the values left,
- d is used for Moving the values right.
- Users must finish the game in way such that values are in ascending order
- Game Starts in format like below as in numbers in scrambled order.
- User Should Change Values Using Specified rules and finish game like below.
- Here Array is used to store the Hard Coded Values of the grid.
- In this code we use both Single and Multi Dimensional Array.
- Single Dimensional Array is used for storing index value for the position of zero in grid.
- Multi Dimensional Array is used for storing,swapping & printing the grid values.
- Function is used to reduce the code complexity.
- Here we use more than one function.
- For loop is used to print grid values.
- It is also used to find the position of zero .
- It is used to run and swap values until the values are in ascending order.
- It is used to get the moves from user and to appropriately swap them in the grid.