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

Views: 236

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: 214
Comments: 0
Ratings: 1
Date added: 2025/08/17 10:33:02
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: The Box of Life
Rating: 5
Filesize: 145.87 kB
Downloads: 185
Comments: 0
Ratings: 1
Date added: 2026/04/27 07:42:17
Made with: Algodoo v2.2.4
Rating: rated 5
download
Title: NASA│Space Shuttle Launch Simulation
Rating: 5.125
Filesize: 94.87 kB
Downloads: 1784
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: 480
Comments: 0
Ratings: 1
Date added: 2015/02/16 19:50:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: the super shelf toilet!
Rating: 5
Filesize: 78.9 kB
Downloads: 698
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: 453
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: