24-Point Game Generator and Solver

Generate Puzzle

Current Puzzle
? ? ? ?

Game Statistics

0
Solved
0
Total Puzzles
0%
Success Rate

Solution Result

Click to view answers and see all possible solutions

Game Rules

  • Use the given 4 numbers to reach 24 using addition, subtraction, multiplication, and division
  • Each number must be used exactly once
  • Parentheses can be used to change the order of operations
  • Supported operators: + - × * / ÷
  • Intermediate results can be fractions, but the final result must be 24

Classic Challenges

Feature Description:

Algorithm explanation:

  • Uses Depth-First Search (DFS) to explore all possible operation combinations
  • Permutes the 4 numbers and tries all combinations of 3 operators
  • Considers different bracket placements with 5 expression structures
  • Uses floating-point calculations; differences within 10⁻⁹ are considered equal
  • Automatically filters out duplicate equivalent solutions