Boolean Expression Interpreter

Yeah, you would have to use parenthesis no matter what. The tree would actually be what real recursion would do.

Iā€™m not sure how you would write a recursive algorithm to replace the tree, at best maybe you could make one to build it. From what I know about programming languages, the tree building is the approach most of them take, so I think itā€™s the best solution here.

1 Like

bruh.
I feel so stoopid.
Thereā€™s an and and or block.
and I didnā€™t even read/understand the topic correctly.

now that Iā€™ve learned all about recursion from my cs courseā€¦ :skull: :skull: :skull:

wait why do we need recursion if we could build a text extraction algorithm to do stuff with thisā€¦ Iā€™m confuzzled.

If we want to make the game change its own code, do we really need a text interpreterā€¦? could we just activate/deactivate triggers based on what code should be changed?

1 Like

I have nothing to do for the next 14 hours so Iā€™m just gonna try and make this in python lmao

From there, you shouldnā€™t have any trouble importing the code into gimkit.