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: 155

Views: 79

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: 119
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: 2255
Comments: 16
Ratings: 73
Date added: 2008/12/11 17:34:42
Made with: Phun
Rating: rated 8
download
Title: snowboarding
Rating: 5
Filesize: 325.63 kB
Downloads: 936
Comments: 0
Ratings: 1
Date added: 2011/07/07 17:15:25
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: NASA│Space Shuttle Launch Simulation
Rating: 5.125
Filesize: 94.87 kB
Downloads: 1689
Comments: 1
Ratings: 2
Date added: 2011/02/23 10:23:39
Made with: Phun
Rating: rated 5.1
download
Title: the super shelf toilet!
Rating: 5
Filesize: 78.9 kB
Downloads: 606
Comments: 0
Ratings: 1
Date added: 2024/08/04 12:04:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: explosion
Rating: 5
Filesize: 121.45 kB
Downloads: 389
Comments: 5
Ratings: 1
Date added: 2015/05/01 00:38:54
Made with: Algodoo v2.1.0
Rating: rated 5
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: