[{"data":1,"prerenderedAt":273},["ShallowReactive",2],{"/dict/downhill":3,"/dict/downhill-surround":262},{"id":4,"title":5,"body":6,"description":228,"extension":229,"meta":230,"navigation":248,"path":258,"seo":259,"stem":260,"__hash__":261},"content/dict/downhill.md","NetLogo Dictionary: downhill",{"type":7,"value":8,"toc":217},"minimark",[9],[10,11,16,42,81,87,90,93,190,193],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","downhill","region",[17,18,20,35],"h3",{"id":19},"downhill10downhill410",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#downhill","doc-noteref","Reference to downhill","\ndownhill\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n1.0\n",[21,36,38,39],{"href":23,"role":24,"ariaLabel":37},"Reference to downhill4","\ndownhill4\n",[28,40,34],{"className":41,"role":32,"ariaLabel":33},[31],[43,44,48],"h4",{"id":45,"className":46},"downhill-patch-variabledownhill4-patch-variable",[47],"section-heading",[21,49,53,65,73],{"className":50,"href":52},[51],"section-anchor","#downhill-patch-variabledownhill4-patch-variable",[28,54,57],{"className":55},[56],"prim_example",[58,59,60,61],"p",{},"downhill ",[62,63,64],"em",{},"patch-variable",[28,66,68],{"className":67},[56],[58,69,70,71],{},"downhill4 ",[62,72,64],{},[74,75],"img",{"alt":76,"src":77,"width":78,"height":78,"style":79},"Turtle Command","/_content/images/turtle.png",16,{"aspectRatio":80},"56/56",[58,82,83,84,86],{},"Moves the turtle to the neighboring patch with the lowest value for ",[62,85,64],{},". If no neighboring patch has a smaller value\nthan the current patch, the turtle stays put. If there are multiple\npatches with the same lowest value, the turtle picks one randomly.\nNon-numeric values are ignored.",[58,88,89],{},"downhill considers the eight neighboring patches; downhill4 only\nconsiders the four neighbors.",[58,91,92],{},"Equivalent to the following code (assumes variable values are\nnumeric):",[94,95,96],"pre",{},[97,98,99,100,106,107,112,113,118,99,121,106,125,106,129,106,133,137,138,141,142,146,99,148,137,152,155,156,106,160,106,163,106,167,137,170,99,172,106,176,179,99,181,106,184,187,189],"code",{},"          ",[28,101,105],{"className":102},[103,104],"token","command","move-to"," ",[28,108,111],{"className":109},[103,110],"reporter","patch-here","  ",[28,114,117],{"className":115},[103,116],"comment",";; go to patch center",[119,120],"br",{},[28,122,124],{"className":123},[103,104],"let",[28,126,58],{"className":127},[103,128],"variable",[28,130,132],{"className":131},[103,110],"min-one-of",[28,134,136],{"className":135},[103,110],"neighbors"," [",[28,139,64],{"className":140},[103,128],"]  ",[28,143,145],{"className":144},[103,116],";; or neighbors4",[119,147],{},[28,149,151],{"className":150},[103,104],"if",[28,153,64],{"className":154},[103,128],"] ",[28,157,159],{"className":158},[103,110],"of",[28,161,58],{"className":162},[103,128],[28,164,166],{"className":165},[103,110],"\u003C",[28,168,64],{"className":169},[103,128],[119,171],{},[28,173,175],{"className":174},[103,104],"face",[28,177,58],{"className":178},[103,128],[119,180],{},[28,182,105],{"className":183},[103,104],[28,185,58],{"className":186},[103,128],[119,188],{},"          ]",[58,191,192],{},"Note that the turtle always ends up on a patch center and has a\nheading that is a multiple of 45 (downhill) or 90 (downhill4).",[58,194,195,196,208,209,216],{},"See also ",[197,198,200],"primitive",{"displayText":199,"permalink":199},"uphill",[21,201,199],{"className":202,"dataDisplayText":199,"href":204,"rel":205,"target":207,"title":199},[203],"netlogo-wiki-link","/dictionary#uphill",[206],"noopener","_self",", ",[197,210,212],{"displayText":211,"permalink":199},"uphill4",[21,213,211],{"className":214,"dataDisplayText":211,"href":204,"rel":215,"target":207,"title":211},[203],[206],".",{"title":218,"searchDepth":219,"depth":220,"links":221},"",5,3,[222],{"id":19,"depth":220,"text":223,"children":224},"\ndownhill\n\n1.0\n\ndownhill4\n\n1.0\n",[225],{"id":45,"depth":226,"text":227},4,"downhill patch-variabledownhill4 patch-variable","Documentation for the downhill primitive.","md",{"source":231,"metadataOutputPath":232,"projectConfig":233,"language":240,"inheritFrom":249,"output":248,"version":234,"layout":250,"dictionaryDisplayName":251,"dictionaryHomeDirectory":252,"indexFileURI":253,"currentItemId":14,"currentItemLabel":254,"primRoot":255,"icon":256,"assetsRoot":257},"autogen/dict/downhill.md","content/dict/downhill.metadata.yaml",{"version":234,"projectRoot":216,"scanRoot":235,"outputRoot":236,"defaults":237,"engine":243,"partials":244,"dedupeIdenticalDiskWrites":248},"7.0.4","autogen","content",{"inheritFrom":238,"language":240,"output":241,"extension":229,"title":242,"version":234},[239],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":245,"extensions":246},[216],[247,229],"mustache",true,[239],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","downhill, downhill4","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/downhill",{"title":5,"description":228},"dict/downhill","5eHAWbvZ8AzyiG68mBmpiDAbqL41owhJb6aNGw7gfLo",[263,268],{"title":264,"path":265,"stem":266,"description":267},"NetLogo Dictionary: distancexy","/dict/distancexy","dict/distancexy","Documentation for the distancexy primitive.",{"title":269,"path":270,"stem":271,"description":272},"NetLogo Dictionary: dxy","/dict/dxy","dict/dxy","Documentation for the dxy primitive.",1777657804053]