"Sort It Out" is a digits sorting game based on a 4x4 matrix. The matrix consists of 15 digits, from 1 to 15, arranged randomly with one empty space for moving and swapping digits. The player has to arrange the digits in ascending order, with a limited number of moves based on the selected difficulty level. The game includes easy, medium, and hard difficulty levels with 400, 300, and 200 moves, respectively.
- Press any key to continue
- Press '1' for help or press '2' to play
- Choose the difficulty level
- Move and sort the digits by pressing the following keys:
- 'w' for up
- 's' for down
- 'a' for left
- 'd' for right
- If the player arranges all the digits in ascending order within the given moves, they win; otherwise, they lose.
- Press 'y' to play again or press 'n' to exit
- Make sure you have a C++ compiler installed on your system (such as GCC, Clang, or Visual Studio).
- Download or clone the "Sort It Out" project source code.
- Open a terminal window and navigate to the directory containing the "SORT IT OUT.cpp" file.
- Run the following command to compile the program:
g++ -o SortItOut "SORT IT OUT.cpp"
- Run the compiled program with the following command:
./SortItOut
- Open a Command Prompt window and navigate to the directory containing the "SORT IT OUT.cpp" file.
- Run the following command to compile the program with the GCC compiler:
g++ -o SortItOut "SORT IT OUT.cpp"
- Run the compiled program with the following command:
SortItOut.exe
*Note: If you are using a different compiler, please refer to the compiler documentation for the appropriate compilation and execution commands.
We welcome any contributions, bug reports, or feature requests for the "Sort It Out" game. Please submit a pull request or open an issue on the project's repository.