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

Views: 74

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: 116
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: 2254
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: 933
Comments: 0
Ratings: 1
Date added: 2011/07/07 17:15:25
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: explosion
Rating: 5
Filesize: 121.45 kB
Downloads: 387
Comments: 5
Ratings: 1
Date added: 2015/05/01 00:38:54
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: 1974
Comments: 2
Ratings: 5
Date added: 2011/03/05 00:12:30
Made with: Phun
Rating: rated 6.6
download
Title: Loop-de-Loop
Rating: 5
Filesize: 103.38 kB
Downloads: 21
Comments: 0
Ratings: 1
Date added: 2009/03/14 10:14:59
Made with: Phun
no image found for this scene
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: