Ligand information for scripts

Started by Crashguard303

Crashguard303 Lv 1

Hi,
Last days and now, we are dealing with TNT puzzles, which are ligand puzzles.

As the ligand (last segment) is a special puzzle segment, it needs special threatment, and can't be mutated for example (which is understandable), but mutating scripts don't "know" this and sometimes try it, causing script termination.

So, I want to remind how useful it would be to get a boolean information, if this is a ligand puzzle or not,
for example

puzzle_is_ligand()

which would respond true if this is a ligand puzzle, and false if it is not.

It could also be realized witha

is_mutable(Index)

function, which returns true if changing the amino-acids for segment "Index" is allowed, and false, if not.

Thanks in advance,
Alex

Crashguard303 Lv 1

We can write scripts this way, that they can try which segment is mutable,
but it takes some time and is goofy, because the game already "knows" which segment-sidechains are allowed to be changed, and this mutable-test can't work on the ligand.

See also this related thread:
http://fold.it/portal/node/988292