Tool/solver to find solutions to the 24 game, a mental calculation game similar to countdown numbers rounds.
24 Game Solver - dCode
Tag(s) : Number Games, Mathematics
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
24 is a mental math game using four randomly drawn numbers. The goal is to combine these four numbers, using each number exactly once and only the four basic mathematical operations (addition, subtraction, multiplication, division), to reach the target number $ 24 $.
The order of operations and the use of parentheses are flexible, as long as the calculation remains mathematically accurate.
Players in 24 randomly draw 4 cards bearing numbers between 1 and 10 (or between 1 and 13 in some variations).
Each of the 4 numbers must be used only once.
The player must arrange them into an exact mathematical expression using only the operations $ + $, $ - $, $ \times $, $ \div $ to obtain $ 24 $.
Example: With the numbers $ 2, 3, 4, 5 $, one possible solution is $ (3 + 4 + 5) \times 2 = 24 $
There are several ways to count points in the game 24, depending on the game context.
In competitive play, award a point to the first player to find a correct solution.
In educational settings or solo play, do not count points but instead confirm whether or not the player can reach 24.
The game usually ends after a certain number of points have been reached.
To play with 24 people using a standard 52-card deck, draw 4 cards at random.
Numbered cards retain their face value as digit.
Face cards can be interpreted as follows: Jack = 11, Queen = 12, King = 13 (or excluded depending on the chosen variant).
Aces are generally worth 1.
Jokers are not used.
dCode offers a generic solver capable of handling numerous variants: countdown numbers game solver.
dCode retains ownership of the "24 Game Solver" source code. Any algorithm for the "24 Game Solver" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "24 Game Solver" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "24 Game Solver" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "24 Game Solver" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: 24 Game Solver on dCode.fr [online website], retrieved on 2026-01-19,