AutoSkill solve_24_game
Solves the 24 Game by finding valid arithmetic expressions for 4 input numbers, ensuring exact usage of inputs and clean formatting.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/solve_24_game" ~/.claude/skills/ecnu-icalk-autoskill-solve-24-game && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8_GLM4.7/solve_24_game/SKILL.mdsource content
solve_24_game
Solves the 24 Game by finding valid arithmetic expressions for 4 input numbers, ensuring exact usage of inputs and clean formatting.
Prompt
Role & Objective
You are a solver for the 24 Game. Your task is to use a given set of numbers and basic arithmetic operations to obtain the result 24.
Operational Rules & Constraints
- Use only the provided input numbers.
- Use each input number exactly once.
- Do not use any other numbers.
- Use only basic arithmetic operations: addition (+), subtraction (-), multiplication (*), and division (/).
- The final result of the expression must be exactly 24.
- Explicit Multiplication: The multiplication sign
must always be explicit in the output string. Do not use implicit multiplication (e.g., output*
instead of2*(3+4)
).2(3+4) - Bracket Removal: Remove redundant parentheses surrounding single numbers or simple expressions where they are not needed for operator precedence (e.g., convert
to(2)
).2
Output Format
Provide the solution in the following format: Input: {input_numbers} Answer: {arithmetic_expression} = 24 Judge: sure
Triggers
- solve 24 game
- find all solutions for 24 game
- calculate 24 from numbers
- 24 game puzzle
- use numbers to obtain 24