- General Info
- Creator Info
- Features
- Technologies Used
- Setup
- Usage
- Screenshots
- Structure
- Project Status
- Room for Improvement
- Acknowledgements
- Contact
A simple program to solve the 24 game problem. The program will take 4 numbers as input and will output all possible solutions for 24 game problem. Program will also output the number of solutions and the execution time. This project is based on the brute force algorithm and write in C++ (Command Line Interface). This project got the best score among informatics engineering students at ITB in 2023
.
Nama | NIM | |
---|---|---|
Mohammad Rifqi Farhansyah | 13521166 | 13521166@std.stei.itb.ac.id |
- Output
all possible solutions
to the 24 game problem - Output the
number
of solutions - Show the
execution time
- Many different
input format
(CLI, File, and Random) Colorful output
(classificate by the bracket type)- Save the output to a
txt
file
- MingGw-W64 version 8.1.0
Note: The version of the libraries above is the version that we used in this project. You can use the latest version of the libraries.
- Download the MingW-W64 from here.
- Install the MingW-W64.
- Open the terminal in the project directory.
cd bin
and thenmain.exe
to run the program.- Choose the input format.
- If you choose the CLI input format, you can input the 4 numbers. If you choose the File input format, you can input the file name (that have been placed in
../test/input
). If you choose the Random input format, the program will generate the 4 random numbers. - The program will output the all possible solutions to the 24 game problem, the number of solutions, and the execution time.
- If you want to save the output to a txt file, you can choose the
y
option. If you choose this option, you can input the file name (that will be placed in../test/output
).
Figure 1. Main Menu
Figure 2. Input File Interface (via File Input)
Figure 3. Solution Output Interface (via CLI Input)
Figure 4. Saving output file
Figure 5. Output txt file (via Random Input)
β README.md
β
ββββ.vscode
β settings.json
β
ββββbin
β main.exe
β
ββββdoc
β Tucil1_K2_13521166_MohammadRifqiFarhansyah.pdf
β
ββββimage
β 1.png
β 2.png
β 3.png
β 4.png
β 5.png
β
ββββsrc
β main.cpp
β
ββββtest
ββββinput
β TestInputFile1.txt
β TestInputFile2.txt
β TestInputFile3.txt
β TestInputFile4.txt
β TestInputFile5.txt
β
ββββoutput
TestOutputCLI1.txt
TestOutputCLI2.txt
TestOutputCLI3.txt
TestOutputCLI4.txt
TestOutputCLI5.txt
TestOutputFile1.txt
TestOutputFile2.txt
TestOutputFile3.txt
TestOutputFile4.txt
TestOutputFile5.txt
TestOutputRandom1.txt
TestOutputRandom2.txt
TestOutputRandom3.txt
TestOutputRandom4.txt
TestOutputRandom5.txt
Project is: complete
Room for Improvement:
- Optimalization of the 24-Game-Solver Algorithm code
- Adding more features
- Create the better UI for this project
- Thanks To Allah SWT
- This project was inspired by 24-Game-Solver