restore best with conditions met

Started by Judecca

Seth Cooper Staff Lv 1

The newest update has a button and lua function for restoring the "credit best", the best solution that satisfies all the conditions and therefore gets credit.

Crashguard303 Lv 1

Nice job, but we still need a "set very best" function.
An example:
If you do a rebuild, it often creates more than one result in the undo bar.
Most times, the first rebuild results are better than the last ones, but you can only get the very last rebuild result by script, as no other script commands are executed, when a tool is running.
Setting the "very best" state before rebuilding and getting the very best result at the end of rebuild would fish out the very best of all rebuild states which were generated by the rebuild command.

Kind regards,
Alex

spvincent Lv 1

Thanks to the developers for addressing this issue, but the implemented solution, restore_credit_best(), simply doesn't work as far as scripting is concerned. The main issue is that the user will be forced, for many scripts, to start at the best solution rather a lower-scoring one of their own choosing, making exploration of alternate structures more difficult. There are other problems too.

Preferable would be a function such as is_condition_met() which would return a boolean value. Much more flexible and hopefully easy to implement.

Crashguard303 Lv 1

Just as spvincent said, scratching at the top the whole time doesn't help.
We definitely need a possibility to change the "very best" state.

Tlaloc Lv 1

There needs to be two functions:

1) are_conditions_met()

2) get_credit_best_score()

While you are implementing that last one, can we get

3) get_recent_best_score()

4) get_absolute_best_score()

as well. These should all return negative scores or have the argument that allows negative scores.