Tag: Recursion

Filling in the missing operators

I made a little equation solver for questions like 1_2_3_4_5=6. The numbers are already there; the puzzle is deciding which operations go in the spaces. The code recursively builds combinations of plus, minus, multiply, and divide, puts each combination between the numbers, and evaluates the result. For the default example, it finds answers such as […]

Read post: Filling in the missing operators

Drawing things with recursion

I made a little Java drawing experiment called Tendron. It starts with a few lines and turns into a branching, rather plant-like scribble. There is not really a game here; I just wanted to see what the pattern would do. A Cluster creates four Tendril objects pointing into different quadrants. Each tendril draws short randomized […]

Read post: Drawing things with recursion