Skip to content

This project is digits sorting game. This game name is “Sort It Out”. In our game, there is 4x4 matrix. The matrix consists of 15 digits from 1 to 15 arranged randomly. There are three difficulty levels in our game. The player will have to sort all the digits within given moves, otherwise he/she will lose.

Notifications You must be signed in to change notification settings

theaafofficial/SortItOut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

README for "Sort It Out" Game

Introduction

"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.

How to Play

  1. Press any key to continue
  2. Press '1' for help or press '2' to play
  3. Choose the difficulty level
  4. Move and sort the digits by pressing the following keys:
    • 'w' for up
    • 's' for down
    • 'a' for left
    • 'd' for right
  5. If the player arranges all the digits in ascending order within the given moves, they win; otherwise, they lose.
  6. Press 'y' to play again or press 'n' to exit

How to Run "Sort It Out" (C++ Program)

Prerequisites

  1. Make sure you have a C++ compiler installed on your system (such as GCC, Clang, or Visual Studio).
  2. Download or clone the "Sort It Out" project source code.

Compile and Run

For Linux or macOS:

  1. Open a terminal window and navigate to the directory containing the "SORT IT OUT.cpp" file.
  2. Run the following command to compile the program:
g++ -o SortItOut "SORT IT OUT.cpp" 
  1. Run the compiled program with the following command:
 ./SortItOut 

For Windows:

  1. Open a Command Prompt window and navigate to the directory containing the "SORT IT OUT.cpp" file.
  2. Run the following command to compile the program with the GCC compiler:
g++ -o SortItOut "SORT IT OUT.cpp" 
  1. 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.

Contributing

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.

About

This project is digits sorting game. This game name is “Sort It Out”. In our game, there is 4x4 matrix. The matrix consists of 15 digits from 1 to 15 arranged randomly. There are three difficulty levels in our game. The player will have to sort all the digits within given moves, otherwise he/she will lose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages