Skip to content

JeffreyChow19/Tucil1_13521046

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

24-Cards-Game Solver using Brute Force Algorithm

The 24 card game is an arithmetic card game with the goal of finding ways to change four random numbers so that the final result is a total of 24. The game is quite popular due to its ability to improve counting skills and sharpen the mind to think quickly and accurately. The 24 Card Game is usually played using a deck of playing cards. Playing cards consist of 52 cards divided into four suits (spades, hearts, diamonds and clubs) each consisting of 13 cards (Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, and King).

This program shows all possibility of operation combinations through 4 cards number so that the result of the expression could be equal to 24. Technically this program use Brute Force Algorithm to find the solutions.

Requirements

  1. Java (java 19.0.2 recommended)

Run

  1. Clone this repository
  2. Go to root directory
  3. Run .\main.bat in terminal

Author

13521046 Jeffrey Chow