Vocabulary

24-game

Inputs

None

Outputs

Word description

Produces a vector with 4 integers. With the following condition: If these integers were directly on the stack, one can process them into 24, just using the provided commands and the 4 numbers. The Following are the provided commands: +, -, *, /, swap, and rot.

Examples

Notes

makes-24? is used in makes-24?.

Definition

24-game

Inputs

None

Outputs

array | an array |

Word description

Produces a vector with 4 integers. With the following condition: If these integers were directly on the stack, one can process them into 24, just using the provided commands and the 4 numbers. The Following are the provided commands: +, -, *, /, swap, and rot.

Examples

USING: 24-game kernel sequences prettyprint ;
make-24 length 4 = .

t

t

Notes

makes-24? is used in makes-24?.

Definition