Unscrambler

A C++ program that creates all possible options of a given word and checks if it is present in the file words.txt. In words.txt are currently 450k english words stored.

Installation

  1. Download the latest binary release for your platform:
  2. Download the words.txt file from latest release and put it into the same folder, as the binary from step 1.
  3. Follow the next steps, only if you use windows!

Executing the program

Windows

  1. Make sure you have the words.txt file in the same folder, as Unscrambler.exe.
  2. Double click the Unscrambler.exe file.
  3. See usage for the usage of the program.
  4. If the program has outputted all the words, and said, that it exited, you can continue with Step 5.
  5. To close the program, either close the window or type any character and press enter.

MacOS/Linux

  1. Open a terminal.
  2. Change the directory with cd to the directory, in which the Binary is located. (You can list all avaliable directories with ls).
  3. If you are in the directory with the binary and the words.txt file, type ./Unscrambler-Mac to execute the program.
  4. Continue with Usage.

Usage

  1. Execute the program.
  2. Type the letters you want to unscramble and then press enter.
  3. Type in the number of threads, you want to use and then press enter.
  4. Wait for the progress bar to fill and/or the program to say, that it has exited.

Building from source

⚠️⚠️ Only continue from here, if you know, what you are doing ⚠️⚠️

Linux

  1. Get the source files by either using git or getting the files, by downloading the zip Archive and extracting it.
    git clone https://github.com/MaFeLP/Unscrambler.git
    cd Unscrambler/
    
  2. You can use the predefined makefile, but it would be better if you would make your own, using cmake.
    You can create a makefile, by using the command:
    cmake CMakeLists.txt
    
  3. Build the binary with the following command:
    make
    

MacOS

  1. Install Xcode.
  2. Install cmake.
  3. Open a Terminal, by pressing Command + Spacebar on your keyboard, typing terminal and hitting enter.
  4. Get the source files with the following commands:
    git clone https://github.com/MaFeLP/Unscrambler.git
    cd Unscrambler/
    
  5. Create a makefile and build the executable with the following commands:
    /Applications/CMake.app/Contents/bin/cmake CMakeLists.txt
    make
    

Other open source projects used in this project