ScratchData LogoScratchData
Back to bmw7's profile

24 Game Solver

BMbmw7•Created October 20, 2017
24 Game Solver
1
1
42 views
View on Scratch

Description

My math teacher sometimes makes the class play a game with the following rules: We are given 6 numbers. We are required to create an expression with all of the given numbers and simple math operations (+,-,*,/). The expression must equal a specific number (which is given). I looked it up, and it is sort of similar to the 24 Game (https://en.wikipedia.org/wiki/24_Game) with the only difference being that our teacher's game does not always have to equal 24. I decided to create a solver for this game, but it is not limited to the 6 digits. You can insert 1-10 numbers (anything beyond that would take ridiculously long plus the actual design behind it doesn't allow more than 10) and choose if you're allowed parentheses. If you're also playing this game, cheat away! p.s. If you require negative numbers, try putting (0-n) instead of -n so the infix to postfix converter will work. Credit goes to archimedes496 for the permutation function (https://scratch.mit.edu/projects/70328990/)

Project Details

Project ID181257643
CreatedOctober 20, 2017
Last ModifiedOctober 23, 2017
SharedOctober 21, 2017
Visibilityvisible
CommentsAllowed