-
Notifications
You must be signed in to change notification settings - Fork 0
/
_history
1 lines (1 loc) · 16.1 KB
/
_history
1
{"entries":[{"timestamp":1731855753266,"editorVersion":"1.7.28","changes":[{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0,"d\"\n ]"],[1,",\n \"additionalFilePaths\": []"],[0,"\n}\n"]],"start1":204,"start2":204,"length1":11,"length2":42}]}]},{"timestamp":1731855767207,"editorVersion":"1.7.28","changes":[{"type":"edited","filename":"main.blocks","patch":[{"diffs":[[0,"http"],[-1,"s://developers.google.com/blockly/xml\"><block type=\"pxt-on-start\" id=\"(rprHjd!WavJFvkW(uHe\" x=\"20\" y=\"20\"><statement name=\"HANDLER\"><block type=\"typescript_statement\" id=\"IYuB?X+rpfA~${x}{[_M\" editable=\"false\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" line0=\"function turn(direction: TurnDirection, a: number) {\" line1=\" if (a < 0) {\" line2=\" direction = direction == TurnDirection.Left ? TurnDirection.Right: TurnDirection.Left;\" line3=\" }\" line4=\" agent.turn(direction)\" line5=\"}\" numlines=\"6\"></mutation></block></statement></block><block type=\"minecraftOnChat\" id=\"wHYk)Fh%QM{U5Q5L9pfs\" x=\"1002\" y=\"20\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" numargs=\"0\"></mutation><value name=\"command\"><shadow type=\"text\" id=\"-%;Ay5@W+M:Z[MP|[)Y=\"><field name=\"TEXT\">hilbert</field></shadow></value><statement name=\"HANDLER\"><block type=\"minecraftAgentChangeAssist\" id=\",7|u8Sy}[FlP(?1Q_C1D\"><field name=\"assist\">AgentAssist.PlaceOnMove</field><value name=\"on\"><shadow type=\"toggleOnOff\" id=\"A3~2#643MxW+B75nia{#\"><field name=\"on\">true</field></shadow></value><next><block type=\"minecraftAgentTeleport\" id=\"gcjl`Gv)^1@n~CiEn;x.\"><next><block type=\"function_call\" id=\"Aj:pBgBl6R`:Y_E6J.?S\"><mutation name=\"hilbert\" functionid=\"uT+X9*t;)oVPIsiAVka{\"><arg name=\"n\" id=\"ssu8uve6x19407rpxjev\" type=\"number\"></arg><arg name=\"a\" id=\"gt829pdy89bp00g1jlzb7\" type=\"number\"></arg><arg name=\"h\" id=\"cbsx9bfp2q2p06su8zk4r\" type=\"number\"></arg></mutation><value name=\"ssu8uve6x19407rpxjev\"><shadow type=\"math_number\" id=\"FxOxMM`5j!a}@Ib-+v28\"><field name=\"NUM\">5</field></shadow></value><value name=\"gt829pdy89bp00g1jlzb7\"><shadow type=\"math_number\" id=\"!TSw/9uF3u,~)xZ_,v7X\"><field name=\"NUM\">1</field></shadow></value><value name=\"cbsx9bfp2q2p06su8zk4r\"><shadow type=\"math_number\" id=\"5)Vi|i`HF$rR#eZuM|@z\"><field name=\"NUM\">2</field></shadow></value></block></next></block></next></block></statement></block><block type=\"function_definition\" id=\"R3;U~y}u0H[f8c.r41cA\" x=\"1475\" y=\"20\"><mutation name=\"hilbert\" functionid=\"uT+X9*t;)oVPIsiAVka{\"><arg name=\"n\" id=\"ssu8uve6x19407rpxjev\" type=\"number\"></arg><arg name=\"a\" id=\"gt829pdy89bp00g1jlzb7\" type=\"number\"></arg><arg name=\"h\" id=\"cbsx9bfp2q2p06su8zk4r\" type=\"number\"></arg></mutation><field name=\"function_name\">hilbert</field><statement name=\"STACK\"><block type=\"controls_if\" id=\"3j{4n;}Bu.4@sNthumn{\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\" id=\"1o%N^Fnn(n4Ns{Yp;Yd8\"><field name=\"OP\">LTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"3[edNtEu5aMS((wAg*oW\"><field name=\"VALUE\">n</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"Py7|e0-HZwoX`tjr6bed\"><field name=\"NUM\">0</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"function_return\" id=\"4.=@}VPy=|o0}}WH[|_i\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" no_return_value=\"true\"></mutation></block></statement><next><block type=\"minecraftAgentSetSlot\" id=\"S!O~i@rBFJcZAZX3^Xg*\"><value name=\"slot\"><shadow type=\"math_number_minmax\" id=\"3`JFb5j:);7fKayN3xd`\"><mutation min=\"1\" max=\"27\" label=\"Number\" precision=\"0\"></mutation><field name=\"SLIDER\">1</field></shadow></value><next><block type=\"minecraftAgentSetItem\" id=\",4`:WWyFQr94jBS]4f/@\"><value name=\"blockOrItem\"><shadow type=\"minecraftBlock\" id=\"P$K1.F8i*;D8we#B6jz9\"><field name=\"block\">Block.LapisOre</field></shadow></value><value name=\"count\"><shadow type=\"math_number_minmax\"><mutation min=\"1\" max=\"64\"></mutation><field name=\"SLIDER\">0</field></shadow><block type=\"math_arithmetic\" id=\"%=Eq)G]Sxc=9Vh=|5x6B\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"-TzT*qp}+OcwvLR_X[Ct\"><field name=\"VALUE\">h</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"[[bB~]b9_VsQA%8Q$fP1\"><field name=\"NUM\">4</field></shadow></value></block></value><value name=\"slot\"><shadow type=\"math_number_minmax\" id=\"[}$m*o7YL(DyR:ISFdOj\"><mutation min=\"1\" max=\"27\" label=\"Number\" precision=\"0\"></mutation><field name=\"SLIDER\">1</field></shadow></value><next><block type=\"typescript_statement\" id=\"_TW3k44fV$2*K8n{8k;X\" editable=\"false\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" line0=\"turn(TurnDirection.Right, a)\" numlines=\"1\"></mutation><next><block type=\"function_call\" id=\"fQwJ;_8o}a1`aG*2NpGc\"><mutation name=\"hilbert\" functionid=\"uT+X9*t;)oVPIsiAVka{\"><arg name=\"n\" id=\"ssu8uve6x19407rpxjev\" type=\"number\"></arg><arg name=\"a\" id=\"gt829pdy89bp00g1jlzb7\" type=\"number\"></arg><arg name=\"h\" id=\"cbsx9bfp2q2p06su8zk4r\" type=\"number\"></arg></mutation><value name=\"ssu8uve6x19407rpxjev\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"Y]AtuIAsP[nZiLFS@av_\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"MuVp7KR#N^29i:~NDE~Y\"><field name=\"VALUE\">n</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"]jKKwkcJ{:$$X-$V[gyW\"><field name=\"NUM\">1</field></shadow></value></block></value><value name=\"gt829pdy89bp00g1jlzb7\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"Yb7(BTg]:QX=:htGTg}#\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"9Jty9EWc@$2y7yP4O#my\"><field name=\"NUM\">0</field></shadow></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"znYW3}MP*3KUkv{f-Bn_\"><field name=\"VALUE\">a</field></block></value></block></value><value name=\"cbsx9bfp2q2p06su8zk4r\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"argument_reporter_number\" id=\"}9hK^VDJ1*U++{s{hsJQ\"><field name=\"VALUE\">h</field></block></value><next><block type=\"minecraftAgentMove\" id=\"qvbxK!Hd[VmAPbMt/$6M\"><value name=\"direction\"><shadow type=\"minecraftAgentSixDirection\" id=\"I~y5wZ=z:Rth_*~3]mp2\"><field name=\"direction\">SixDirection.Forward</field></shadow></value><value name=\"blocks\"><block type=\"argument_reporter_number\" id=\"eP4es{|hc,LZnJf~[.Ev\"><field name=\"VALUE\">h</field></block></value><next><block type=\"typescript_statement\" id=\"j]{rjY3Z7V93rop6d$uc\" editable=\"false\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" line0=\"turn(TurnDirection.Left, a);\" numlines=\"1\"></mutation><next><block type=\"function_call\" id=\"y@`zb^=#w30@Yl0D4^a^\"><mutation name=\"hilbert\" functionid=\"uT+X9*t;)oVPIsiAVka{\"><arg name=\"n\" id=\"ssu8uve6x19407rpxjev\" type=\"number\"></arg><arg name=\"a\" id=\"gt829pdy89bp00g1jlzb7\" type=\"number\"></arg><arg name=\"h\" id=\"cbsx9bfp2q2p06su8zk4r\" type=\"number\"></arg></mutation><value name=\"ssu8uve6x19407rpxjev\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"Q|p_xf4lJbwx*2o30N7P\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"f.[y]LC,.H6~/qIS^-_E\"><field name=\"VALUE\">n</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"hIekqE.Z$Pu:Ck7d|5I/\"><field name=\"NUM\">1</field></shadow></value></block></value><value name=\"gt829pdy89bp00g1jlzb7\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"argument_reporter_number\" id=\"fvOgo=V!Vi8tbPV`oeQi\"><field name=\"VALUE\">a</field></block></value><value name=\"cbsx9bfp2q2p06su8zk4r\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"argument_reporter_number\" id=\"#eB!lUl31MQ%!OT(*9t!\"><field name=\"VALUE\">h</field></block></value><next><block type=\"minecraftAgentMove\" id=\"Re8#y!u~2YTW2k1_Son{\"><value name=\"direction\"><shadow type=\"minecraftAgentSixDirection\" id=\"]Lt9^Tz$pb!=i9j.3zQR\"><field name=\"direction\">SixDirection.Forward</field></shadow></value><value name=\"blocks\"><block type=\"argument_reporter_number\" id=\"tVwN{Scc:q~Dak^:pav|\"><field name=\"VALUE\">h</field></block></value><next><block type=\"function_call\" id=\"ju4$vFH}Rvq-@@m77~tK\"><mutation name=\"hilbert\" functionid=\"uT+X9*t;)oVPIsiAVka{\"><arg name=\"n\" id=\"ssu8uve6x19407rpxjev\" type=\"number\"></arg><arg name=\"a\" id=\"gt829pdy89bp00g1jlzb7\" type=\"number\"></arg><arg name=\"h\" id=\"cbsx9bfp2q2p06su8zk4r\" type=\"number\"></arg></mutation><value name=\"ssu8uve6x19407rpxjev\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"8k)/AC?XoG%N=X#zIf@N\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"Gd1skkj2#PqH5FwtWTuK\"><field name=\"VALUE\">n</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"V9(4uh4jL)_Rx@-B:I58\"><field name=\"NUM\">1</field></shadow></value></block></value><value name=\"gt829pdy89bp00g1jlzb7\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"argument_reporter_number\" id=\"TcS^Wb{6iQAs}6I=x{5{\"><field name=\"VALUE\">a</field></block></value><value name=\"cbsx9bfp2q2p06su8zk4r\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"argument_reporter_number\" id=\"zqM-nu@1BcA*2?iXkPxB\"><field name=\"VALUE\">h</field></block></value><next><block type=\"typescript_statement\" id=\"!jN=8i0fpPm)izfSeo`l\" editable=\"false\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" line0=\"turn(TurnDirection.Left, a);\" numlines=\"1\"></mutation><next><block type=\"minecraftAgentMove\" id=\"^M!rcCQwY6J)Prg.~xB!\"><value name=\"direction\"><shadow type=\"minecraftAgentSixDirection\" id=\"(rB=97=cLP0M)h7Lrf@1\"><field name=\"direction\">SixDirection.Forward</field></shadow></value><value name=\"blocks\"><block type=\"argument_reporter_number\" id=\"Ks=-ySJf+Txh[|DV5u6r\"><field name=\"VALUE\">h</field></block></value><next><block type=\"function_call\" id=\"f:Xbdftt=*Z.uSFpc~D]\"><mutation name=\"hilbert\" functionid=\"uT+X9*t;)oVPIsiAVka{\"><arg name=\"n\" id=\"ssu8uve6x19407rpxjev\" type=\"number\"></arg><arg name=\"a\" id=\"gt829pdy89bp00g1jlzb7\" type=\"number\"></arg><arg name=\"h\" id=\"cbsx9bfp2q2p06su8zk4r\" type=\"number\"></arg></mutation><value name=\"ssu8uve6x19407rpxjev\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"t@}YYLhxO,%*vac0{]?L\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"Z.4Ic`lTm0(GE%v8eXYU\"><field name=\"VALUE\">n</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"W^f0u`:9):JWi)IqH7!.\"><field name=\"NUM\">1</field></shadow></value></block></value><value name=\"gt829pdy89bp00g1jlzb7\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"X4!3j$*.p2;@!hwY@Q*_\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"TqRXn%u5{G[-K6`^$ht1\"><field name=\"NUM\">0</field></shadow></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\" id=\"7dp[r:MQx?042l^9#~@P\"><field name=\"VALUE\">a</field></block></value></block></value><value name=\"cbsx9bfp2q2p06su8zk4r\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow><block type=\"argument_reporter_number\" id=\"N+@e-/Vf]z`b|%e~wPhT\"><field name=\"VALUE\">h</field></block></value><next><block type=\"typescript_statement\" id=\"Zkt0p8ek|+8Vl_jYx%{i\" editable=\"false\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" line0=\"turn(TurnDirection.Right, a);\" numlines=\"1\"></mutation></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block"],[1,"://www.w3.org/1999/xhtml\""],[0,"></x"]],"start1":12,"start2":12,"length1":11818,"length2":33}]},{"type":"edited","filename":"main.ts","patch":[{"diffs":[[-1,"player.onChat(\"hilbert\", function () {\n agent.setAssist(PLACE_ON_MOVE, true)\n agent.teleportToPlayer()\n hilbert(5, 1, 2)\n})"],[1,"function turn(direction: TurnDirection, a: number) {\n if (a < 0) {\n direction = direction == TurnDirection.Left ? TurnDirection.Right: TurnDirection.Left;\n }\n agent.turn(direction)\n}\n"],[0,"\nfun"]],"start1":0,"start2":0,"length1":136,"length2":203},{"diffs":[[0," return"],[1,";"],[0,"\n }\n "]],"start1":277,"start2":277,"length1":16,"length2":17},{"diffs":[[0,"ght, a)\n"],[1," "],[0,"hilbert("]],"start1":378,"start2":378,"length1":16,"length2":20},{"diffs":[[0,", 0 - a, h)\n"],[-1,""],[0," agent.mo"]],"start1":403,"start2":403,"length1":24,"length2":24},{"diffs":[[0,"ft, a);\n"],[1," "],[0,"hilbert("]],"start1":467,"start2":467,"length1":16,"length2":20},{"diffs":[[0," - 1, a, h)\n"],[-1,""],[0," agent.mo"]],"start1":488,"start2":488,"length1":24,"length2":24},{"diffs":[[0,"ft, a);\n"],[1," "],[0,"agent.mo"]],"start1":577,"start2":577,"length1":16,"length2":20},{"diffs":[[0,"ove(FORWARD, h)\n"],[-1,""],[0," hilbert(n - "]],"start1":596,"start2":596,"length1":32,"length2":32},{"diffs":[[0,";\n}\n"],[-1,"function turn(direction: TurnDirection, a: number) {\n if (a < 0"],[1,"\nplayer.onChat(\"hilbert\", function ("],[0,") {\n "],[-1," direction = direction == TurnDirection.Left ? TurnDirection.Right: TurnDirection.Left;\n }\n agent.turn(direction)\n}\n"],[1,"agent.setAssist(PLACE_ON_MOVE, true)\n agent.teleportToPlayer()\n hilbert(5, 1, 2)\n})"]],"start1":673,"start2":673,"length1":203,"length2":137}]},{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0," ]"],[-1,",\n \"testFiles\": [\n \"test.ts\"\n ],\n \"preferredEditor\": \"tsprj\""],[0,"\n}\n"]],"start1":208,"start2":208,"length1":83,"length2":7}]},{"type":"added","filename":"test.ts","value":"// les tests vont ici ; cela ne sera pas compilé si ce paquet est utilisé en tant qu'extension.\n"}]}],"snapshots":[{"timestamp":1731855753265,"editorVersion":"1.7.28","text":{"main.blocks":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"></xml>","main.ts":"function turn(direction: TurnDirection, a: number) {\n if (a < 0) {\n direction = direction == TurnDirection.Left ? TurnDirection.Right: TurnDirection.Left;\n }\n agent.turn(direction)\n}\n\nfunction hilbert (n: number, a: number, h: number) {\n if (n <= 0) {\n return;\n }\n agent.setSlot(1)\n agent.setItem(LAPIS_ORE, h * 4, 1)\n turn(TurnDirection.Right, a)\n hilbert(n - 1, 0 - a, h)\n agent.move(FORWARD, h)\n turn(TurnDirection.Left, a);\n hilbert(n - 1, a, h)\n agent.move(FORWARD, h)\n hilbert(n - 1, a, h)\n turn(TurnDirection.Left, a);\n agent.move(FORWARD, h)\n hilbert(n - 1, 0 - a, h)\n turn(TurnDirection.Right, a);\n}\n\nplayer.onChat(\"hilbert\", function () {\n agent.setAssist(PLACE_ON_MOVE, true)\n agent.teleportToPlayer()\n hilbert(5, 1, 2)\n})","README.md":"","pxt.json":"{\n \"name\": \"hilbert fractals\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"builder\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\"\n ],\n \"additionalFilePaths\": []\n}\n"}}],"shares":[]}