Browse Search Popular Register Upload Rules User list Login:
Search:
Bidirectional “For” Loop with Step

Image:
screenshot of the scene

Author: s_noonan

Group: Default

Filesize: 39.75 kB

Date added: 2025-08-16

Rating: 5

Downloads: 200

Views: 146

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.2.3

Tags:

Scene tag

A custom “for” loop built in Thyme that works in both directions (up or down) and supports any step size.
Instead of a simple linear loop, it uses a divide-and-conquer recursion scheme to split ranges in half — this drastically reduces recursion depth and raises the effective loop capacity up to about 2^64 iterations without crashing.

Use it to safely iterate large ranges, experiment with step sizes, or as a reusable component in your own Algodoo projects.
Last edited at 2025/08/16 21:05:57 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: xWhile
Rating: 5
Filesize: 33.41 kB
Downloads: 154
Comments: 0
Ratings: 1
Date added: 2025/08/17 10:33:02
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: Rocket with Boost Stages
Rating: 8.0411
Filesize: 1.1 MB
Downloads: 2275
Comments: 16
Ratings: 73
Date added: 2008/12/11 17:34:42
Made with: Phun
Rating: rated 8
download
Title: Make Your Own Milkshake
Rating: 5
Filesize: 362.69 kB
Downloads: 6865
Comments: 0
Ratings: 1
Date added: 2016/01/16 08:13:14
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: NASA│Space Shuttle Launch Simulation
Rating: 5.125
Filesize: 94.87 kB
Downloads: 1721
Comments: 1
Ratings: 2
Date added: 2011/02/23 10:23:39
Made with: Phun
Rating: rated 5.1
download
Title: Box & tracer spin art tutorial
Rating: 5
Filesize: 35.92 kB
Downloads: 443
Comments: 0
Ratings: 1
Date added: 2015/02/16 19:50:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Space Shuttle X-71 launch 2
Rating: 6.6364
Filesize: 126.52 kB
Downloads: 2000
Comments: 2
Ratings: 5
Date added: 2011/03/05 00:12:30
Made with: Phun
Rating: rated 6.6
download
Interesting. I've never seen a For Loop done that way! I was wondering if you "invented" this technique or did some AI creature give it to you?

If you learned this from a website would you be so kind to share it with everyone?

THANKS!
I tried to get (2) AIs to create a bidirectional _xFor loop but was not successful, so I created one myself. Once I had the bidirectional loop, I asked AI to add step functionality. This increased the complexity substantially.
Okay, thanks again. I will definitely save this for future use. :tup: