/Game-of-Fifteen

The following is a simple code that upon running allows you to play the game of fifteen

Primary LanguageC

Game-of-Fifteen

This is a very simple code written in C which allows you to play the game of fifteen . Usage ./fifteen n
n here creates an nXn matrix on which the game can be played

HOW TO PLAY:
To play the game enter the number which you want to shift to adjacent position

For example if the setting is this

8|7|6
5|4|3
2|1|_

Then you can enter 1 or 3 which will then replace the underscore (_) and what you'll get will be something like this:

8|7|6
5|4|3
2|_|1