Skip to content

Tugas Kecil 1 Strategi Algoritma "Implementasi Algoritma Brute Force dalam Permainan Kartu 24"

Notifications You must be signed in to change notification settings

archmans/24-Card-Game-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tucil1_13521010

About

Tucil (Tugas Kecil) 1 is a project for IF2211 Algorithm Strategies course. The project is make a program that can solve 24 game. The program will take 4 inputs and will give the solution to make 24 from those inputs. The program will also give the runtime of the program. The program will also give the option to save the solution to a file. The program use brute force algorithm to solve the problem. The program is written in C++.

Creator

13521010 - Muhamad Salman Hakim Alfarisi

Game Features

  • Input 4 numbers and get the solution to make 24
  • Get the runtime of the program
  • Save the solution to a file

How to Play

  1. Input 1 to input your own numbers or 2 to generate random numbers
  2. If you input 1, you will be asked to input 4 cards (A, J, Q, K, 2-10)
  3. If you input 2, you will be given 4 random cards
  4. The program will show you all the possible solutions
  5. You can choose to save the solutions to a file or not

Project Structure

.
Tucil1_13521010                                             
├─ bin                                                      
│  └─ makeIt24.exe                                          
├─ doc                                                      
│  ├─ Tucil1-Stima-2023.pdf                                 
│  └─ Tucil1_K3_13521010_Muhamad Salman Hakim Alfarisi.pdf  
├─ src                                                      
│  ├─ makeIt24.cpp                                          
│  ├─ operations.cpp                                        
│  ├─ operations.hpp                                        
│  ├─ solver24.cpp                                          
│  └─ solver24.hpp                                          
├─ test                                                     
│  ├─ test1.txt                                             
│  ├─ test2.txt                                             
│  ├─ test3.txt                                             
│  ├─ test4.txt                                             
│  ├─ test5.txt                                             
│  └─ test6.txt                                             
└─ README.md                                                
     

Local Setup

  1. Clone this repository
  2. Run makeIt24.exe in Tucil1_13521010/bin/

Technology Used

  • C++

About

Tugas Kecil 1 Strategi Algoritma "Implementasi Algoritma Brute Force dalam Permainan Kartu 24"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages