Back to Recipes Homepage
recipe picture
Recipe: tlaloc random tug 1.05
Created by Tlaloc 174 176
4.333335
Your rating: None Average: 4.3 (3 votes)
Used 1 times with an average impact of 10 points.

Profile

Name: tlaloc random tug 1.05
ID: 2711
Created on: Mon, 06/14/2010 - 23:25
Updated on: Sat, 06/26/2010 - 22:05
Description:

Creates a random band, then tugs. Then releases until stable. For bands that are close enough, it may also push out. It repeats for 100 tries before quitting. Restores to the recent best score between tugs. If you stop the script, you can hit the 'Restore rcnt best' button on the Undo menu to restore to the best score.



Best For


Comments

Tlaloc's picture
User offline. Last seen 1 hour 8 min ago. Offline
Joined: 08/04/2008
Groups: Mojo Risin'
Additional notes

This script is an attempt to find points when you get stuck. If you are deep within a local minimum you need to find a way out. So this is a 'tug and pray' script. It randomly creates a band between two segments. It then either pushes or pulls between the two segments. Pushing can only occur if the two bands are less than 20 'units' apart; a bug in foldit. It randomly chooses pushing or pulling.

If it pulls, it increases band strength until an at least 10 points change, then wiggles and shakes until no more points are to be had. If it doesn't increase over the original score, it resets to the original structure. If it pushes, it increases the band length until the 10 point change. It will try 100 times before giving up.

If you are in the end game and have already found all your points, it will do nothing. I have found, however, that it sometimes finds points when other scripts don't. It is certainly a thing to have in your toolbox.

Note that due to the way the random number generator works, it seeds from the low order digits of the current score. If you reset back to exactly the same position, you will get exactly the same sequence of bands. However, any modification to the score will cause the sequence to change. Just hitting wiggle all for a second should be enough to cause a different sequence to occur, even if the score in the user interface doesn't change.

There is a parameter to the recipe.RepeatRandomTug(100, ...)
function near the bottom of the script. Changing the first argument from 100 to another number will change the number of tries it makes. You might want to have 10 for a fast script, or 100000 for one that runs almost indefinitely until Canceled.

Joined: 09/18/2009
Groups: SETI.Germany
...

...time for negative pull strength!

Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.
Parent

none

Children
Authors
Supported by: UW Center for Game Science, UW Department of Computer Science and Engineering, UW Baker Lab, DARPA, NSF, HHMI, Microsoft, and Adobe