Icon representing a recipe

Recipe: setDensityHidingPackingPairwiseImpV2.Lua

created by zo3xiaJonWeinberg

Profile


Name
setDensityHidingPackingPairwiseImpV2.Lua
ID
104090
Shared with
Public
Parent
intro-to-the-AlphaGo-A.i.-2.Lua
Children
None
Created on
November 04, 2020 at 14:31 PM UTC
Updated on
November 04, 2020 at 14:31 PM UTC
Description

Login to both the foldit game AND the fold.it website to download.

Check the Behavior (Comportar) tab -> Recipe score modding checkbox before/during running, before clicking OK.

Set importances. Density only for electron density puzzles.

GUI from The Game of Go minigame.

Best for


Code


local opt = dialog.CreateDialog("Player "..user.GetPlayerName() ..", welcome") opt.labelMsg0=dialog.AddLabel("in Behavior/Comportamiento tab, ") opt.labelMsg1=dialog.AddLabel("check Recipe score modding before clicking OK. ") repeat print("In a tutorial, Player " .. user.GetPlayerName() .." can reset to win.") --Jon copied from Bruno Kestomont's JET 3.6 opt.density=dialog.AddSlider("density",behavior.GetDensityImportance(),0,3,2) opt.hiding=dialog.AddSlider("hiding",behavior.GetHidingImportance(),0,3,2) opt.packing=dialog.AddSlider("packing",behavior.GetPackingImportance(),0,3,2) opt.pairwise=dialog.AddSlider("pairwise",behavior.GetPairwiseImportance(),0,3,2) opt.ok=dialog.AddButton("OK",1) opt.cancel = dialog.AddButton("Exit", 0) res=dialog.Show(opt) if(0<res) then behavior.SetDensityImportance(opt.density.value) behavior.SetHidingImportance(opt.hiding.value) behavior.SetPackingImportance(opt.packing.value) behavior.SetPairwiseImportance(opt.pairwise.value) if(behavior.GetDensityImportance()~=opt.density.value or behavior.GetHidingImportance()~=opt.hiding.value or behavior.GetPackingImportance()~=opt.packing.value or behavior.GetPairwiseImportance()~=opt.pairwise.value ) then opt.labelMsg=dialog.AddLabel("failed to change settings. Check Recipe score modding. ") else opt.labelMsg=dialog.AddLabel("successfully set") --res=0 end end until res==0

Comments