{"id":72271,"student_id":1444,"content":"{\n\t\"objName\": \"Stage\",\n\t\"variables\": [{\n\t\t\t\"name\": \"\\u0008i\",\n\t\t\t\"value\": 10,\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"tmp\",\n\t\t\t\"value\": 10,\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"j\",\n\t\t\t\"value\": 11,\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"k\",\n\t\t\t\"value\": 11,\n\t\t\t\"isPersistent\": false\n\t\t}],\n\t\"lists\": [{\n\t\t\t\"listName\": \"\\u0008\\u0008清單\",\n\t\t\t\"contents\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],\n\t\t\t\"isPersistent\": false,\n\t\t\t\"x\": 5,\n\t\t\t\"y\": 5,\n\t\t\t\"width\": 153,\n\t\t\t\"height\": 341,\n\t\t\t\"visible\": true\n\t\t}],\n\t\"sounds\": [{\n\t\t\t\"soundName\": \"pop\",\n\t\t\t\"soundID\": -1,\n\t\t\t\"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n\t\t\t\"sampleCount\": 258,\n\t\t\t\"rate\": 11025,\n\t\t\t\"format\": \"\"\n\t\t}],\n\t\"costumes\": [{\n\t\t\t\"costumeName\": \"backdrop1\",\n\t\t\t\"baseLayerID\": -1,\n\t\t\t\"baseLayerMD5\": \"739b5e2a2435f6e1ec2993791b423146.png\",\n\t\t\t\"bitmapResolution\": 1,\n\t\t\t\"rotationCenterX\": 240,\n\t\t\t\"rotationCenterY\": 180\n\t\t}],\n\t\"currentCostumeIndex\": 0,\n\t\"penLayerMD5\": \"5c81a336fab8be57adc039a8a2b33ca9.png\",\n\t\"penLayerID\": -1,\n\t\"tempoBPM\": 60,\n\t\"videoAlpha\": 0.5,\n\t\"children\": [{\n\t\t\t\"objName\": \"koding\",\n\t\t\t\"scripts\": [[10,\n\t\t\t\t\t10,\n\t\t\t\t\t[[\"whenGreenFlag\"],\n\t\t\t\t\t\t[\"deleteLine:ofList:\", \"all\", \"\\u0008\\u0008清單\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"\\u0008i\", 0],\n\t\t\t\t\t\t[\"doRepeat\",\n\t\t\t\t\t\t\t10,\n\t\t\t\t\t\t\t[[\"changeVar:by:\", \"\\u0008i\", 1], [\"insert:at:ofList:\", [\"readVariable\", \"\\u0008i\"], \"random\", \"\\u0008\\u0008清單\"]]]]],\n\t\t\t\t[603,\n\t\t\t\t\t10,\n\t\t\t\t\t[[\"procDef\", \"SWAP %n %n\", [\"變數1\", \"變數2\"], [1, 1], false],\n\t\t\t\t\t\t[\"setVar:to:\", \"tmp\", [\"getLine:ofList:\", [\"getParam\", \"變數1\", \"r\"], \"\\u0008\\u0008清單\"]],\n\t\t\t\t\t\t[\"setLine:ofList:to:\", [\"getParam\", \"變數1\", \"r\"], \"\\u0008\\u0008清單\", [\"getLine:ofList:\", [\"getParam\", \"變數2\", \"r\"], \"\\u0008\\u0008清單\"]],\n\t\t\t\t\t\t[\"setLine:ofList:to:\", [\"getParam\", \"變數2\", \"r\"], \"\\u0008\\u0008清單\", [\"readVariable\", \"tmp\"]]]],\n\t\t\t\t[1078,\n\t\t\t\t\t10,\n\t\t\t\t\t[[\"procDef\", \"bubble sort\", [], [], false],\n\t\t\t\t\t\t[\"setVar:to:\", \"k\", [\"-\", [\"lineCountOfList:\", \"\\u0008\\u0008清單\"], 1]],\n\t\t\t\t\t\t[\"doRepeat\",\n\t\t\t\t\t\t\t[\"-\", [\"lineCountOfList:\", \"\\u0008\\u0008清單\"], 1],\n\t\t\t\t\t\t\t[[\"setVar:to:\", \"j\", \"0\"],\n\t\t\t\t\t\t\t\t[\"doRepeat\",\n\t\t\t\t\t\t\t\t\t[\"readVariable\", \"k\"],\n\t\t\t\t\t\t\t\t\t[[\"changeVar:by:\", \"j\", 1],\n\t\t\t\t\t\t\t\t\t\t[\"doIf\",\n\t\t\t\t\t\t\t\t\t\t\t[\"\u003e\",\n\t\t\t\t\t\t\t\t\t\t\t\t[\"getLine:ofList:\", [\"readVariable\", \"j\"], \"\\u0008\\u0008清單\"],\n\t\t\t\t\t\t\t\t\t\t\t\t[\"getLine:ofList:\", [\"+\", [\"readVariable\", \"j\"], 1], \"\\u0008\\u0008清單\"]],\n\t\t\t\t\t\t\t\t\t\t\t[[\"call\", \"SWAP %n %n\", [\"readVariable\", \"j\"], [\"+\", [\"readVariable\", \"j\"], 1]]]]]],\n\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"k\", -1]]]]],\n\t\t\t\t[603, 186, [[\"whenKeyPressed\", \"b\"], [\"call\", \"bubble sort\"]]],\n\t\t\t\t[14.5,\n\t\t\t\t\t322.5,\n\t\t\t\t\t[[\"procDef\", \"insertion sort\", [], [], false],\n\t\t\t\t\t\t[\"setVar:to:\", \"k\", \"1\"],\n\t\t\t\t\t\t[\"doUntil\",\n\t\t\t\t\t\t\t[\"\u003c\", [\"lineCountOfList:\", \"\\u0008\\u0008清單\"], [\"readVariable\", \"k\"]],\n\t\t\t\t\t\t\t[[\"setVar:to:\", \"\\u0008i\", [\"-\", [\"readVariable\", \"k\"], 1]],\n\t\t\t\t\t\t\t\t[\"doUntil\",\n\t\t\t\t\t\t\t\t\t[\"|\",\n\t\t\t\t\t\t\t\t\t\t[\"\u003c\", [\"readVariable\", \"\\u0008i\"], \"1\"],\n\t\t\t\t\t\t\t\t\t\t[\"\u003c\", [\"getLine:ofList:\", [\"readVariable\", \"\\u0008i\"], \"\\u0008\\u0008清單\"], [\"getLine:ofList:\", [\"readVariable\", \"k\"], \"\\u0008\\u0008清單\"]]],\n\t\t\t\t\t\t\t\t\t[[\"changeVar:by:\", \"\\u0008i\", -1]]],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"tmp\", [\"getLine:ofList:\", [\"readVariable\", \"k\"], \"\\u0008\\u0008清單\"]],\n\t\t\t\t\t\t\t\t[\"deleteLine:ofList:\", [\"readVariable\", \"k\"], \"\\u0008\\u0008清單\"],\n\t\t\t\t\t\t\t\t[\"insert:at:ofList:\", [\"readVariable\", \"tmp\"], [\"+\", [\"readVariable\", \"\\u0008i\"], 1], \"\\u0008\\u0008清單\"],\n\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"k\", 1]]]]],\n\t\t\t\t[18.85, 215.5, [[\"whenKeyPressed\", \"s\"], [\"call\", \"selection sort\"]]],\n\t\t\t\t[200.8, 214.9, [[\"whenKeyPressed\", \"i\"], [\"call\", \"insertion sort\"]]],\n\t\t\t\t[71.75,\n\t\t\t\t\t709.7,\n\t\t\t\t\t[[\"procDef\", \"selection sort\", [], [], false],\n\t\t\t\t\t\t[\"setVar:to:\", \"k\", \"1\"],\n\t\t\t\t\t\t[\"doUntil\",\n\t\t\t\t\t\t\t[\"\u003e\", [\"readVariable\", \"k\"], [\"lineCountOfList:\", \"\\u0008\\u0008清單\"]],\n\t\t\t\t\t\t\t[[\"setVar:to:\", \"tmp\", [\"readVariable\", \"k\"]],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"j\", [\"readVariable\", \"k\"]],\n\t\t\t\t\t\t\t\t[\"doUntil\",\n\t\t\t\t\t\t\t\t\t[\"\u003e\", [\"readVariable\", \"j\"], [\"lineCountOfList:\", \"\\u0008\\u0008清單\"]],\n\t\t\t\t\t\t\t\t\t[[\"doIf\",\n\t\t\t\t\t\t\t\t\t\t\t[\"\u003e\", [\"getLine:ofList:\", [\"readVariable\", \"tmp\"], \"\\u0008\\u0008清單\"], [\"getLine:ofList:\", [\"readVariable\", \"j\"], \"\\u0008\\u0008清單\"]],\n\t\t\t\t\t\t\t\t\t\t\t[[\"setVar:to:\", \"tmp\", [\"readVariable\", \"j\"]]]],\n\t\t\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"j\", 1]]],\n\t\t\t\t\t\t\t\t[\"call\", \"SWAP %n %n\", [\"readVariable\", \"k\"], [\"readVariable\", \"tmp\"]],\n\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"k\", 1]]]]]],\n\t\t\t\"scriptComments\": [[129, 23, 150, 200, false, 0, \"創造隨機內容的清單\"]],\n\t\t\t\"sounds\": [{\n\t\t\t\t\t\"soundName\": \"pop\",\n\t\t\t\t\t\"soundID\": -1,\n\t\t\t\t\t\"md5\": \"83a9787d4cb6f3b7632b4ddfebf74367.wav\",\n\t\t\t\t\t\"sampleCount\": 258,\n\t\t\t\t\t\"rate\": 11025,\n\t\t\t\t\t\"format\": \"\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"soundName\": \"meow\",\n\t\t\t\t\t\"soundID\": -1,\n\t\t\t\t\t\"md5\": \"83c36d806dc92327b9e7049a565c6bff.wav\",\n\t\t\t\t\t\"sampleCount\": 18688,\n\t\t\t\t\t\"rate\": 22050,\n\t\t\t\t\t\"format\": \"\"\n\t\t\t\t}],\n\t\t\t\"costumes\": [{\n\t\t\t\t\t\"costumeName\": \"koding\",\n\t\t\t\t\t\"baseLayerID\": -1,\n\t\t\t\t\t\"baseLayerMD5\": \"ce58bb1ea535016e7546963bd1e607d1.svg\",\n\t\t\t\t\t\"bitmapResolution\": 1,\n\t\t\t\t\t\"rotationCenterX\": 92,\n\t\t\t\t\t\"rotationCenterY\": 128\n\t\t\t\t}],\n\t\t\t\"currentCostumeIndex\": 0,\n\t\t\t\"scratchX\": -18,\n\t\t\t\"scratchY\": -16,\n\t\t\t\"scale\": 1,\n\t\t\t\"direction\": 90,\n\t\t\t\"rotationStyle\": \"normal\",\n\t\t\t\"isDraggable\": false,\n\t\t\t\"indexInLibrary\": 1,\n\t\t\t\"visible\": true,\n\t\t\t\"spriteInfo\": {\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"target\": \"Stage\",\n\t\t\t\"cmd\": \"getVar:\",\n\t\t\t\"param\": \"\\u0008i\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"\\u0008i\",\n\t\t\t\"mode\": 1,\n\t\t\t\"sliderMin\": 0,\n\t\t\t\"sliderMax\": 100,\n\t\t\t\"isDiscrete\": true,\n\t\t\t\"x\": 5,\n\t\t\t\"y\": 212,\n\t\t\t\"visible\": false\n\t\t},\n\t\t{\n\t\t\t\"target\": \"Stage\",\n\t\t\t\"cmd\": \"getVar:\",\n\t\t\t\"param\": \"k\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"k\",\n\t\t\t\"mode\": 1,\n\t\t\t\"sliderMin\": 0,\n\t\t\t\"sliderMax\": 100,\n\t\t\t\"isDiscrete\": true,\n\t\t\t\"x\": 157,\n\t\t\t\"y\": 59,\n\t\t\t\"visible\": true\n\t\t},\n\t\t{\n\t\t\t\"target\": \"Stage\",\n\t\t\t\"cmd\": \"getVar:\",\n\t\t\t\"param\": \"tmp\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"tmp\",\n\t\t\t\"mode\": 1,\n\t\t\t\"sliderMin\": 0,\n\t\t\t\"sliderMax\": 100,\n\t\t\t\"isDiscrete\": true,\n\t\t\t\"x\": 157,\n\t\t\t\"y\": 5,\n\t\t\t\"visible\": true\n\t\t},\n\t\t{\n\t\t\t\"target\": \"Stage\",\n\t\t\t\"cmd\": \"getVar:\",\n\t\t\t\"param\": \"j\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"j\",\n\t\t\t\"mode\": 1,\n\t\t\t\"sliderMin\": 0,\n\t\t\t\"sliderMax\": 100,\n\t\t\t\"isDiscrete\": true,\n\t\t\t\"x\": 157,\n\t\t\t\"y\": 32,\n\t\t\t\"visible\": true\n\t\t},\n\t\t{\n\t\t\t\"listName\": \"\\u0008\\u0008清單\",\n\t\t\t\"contents\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],\n\t\t\t\"isPersistent\": false,\n\t\t\t\"x\": 5,\n\t\t\t\"y\": 5,\n\t\t\t\"width\": 153,\n\t\t\t\"height\": 341,\n\t\t\t\"visible\": true\n\t\t}],\n\t\"info\": {\n\t\t\"videoOn\": false,\n\t\t\"swfVersion\": \"v454\",\n\t\t\"spriteCount\": 1,\n\t\t\"flashVersion\": \"MAC 32,0,0,207\",\n\t\t\"scriptCount\": 8,\n\t\t\"hasCloudData\": false,\n\t\t\"userAgent\": \"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/74.0.3729.169 Safari\\/537.36\",\n\t\t\"projectID\": \"projects_5j3s52qe\"\n\t}\n}","created_at":"2019-06-15T10:52:27.074+08:00","updated_at":"2019-10-27T15:45:42.108+08:00","name":"sort","language":"scratch3","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/72271/86fe4eafed3dbf5ea283fb08be10f1c6.jpg"},"parent_id":1,"plugin":null,"description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":91,"hashid":"5j3s52qe","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1262586,"file_name":"2.svg","project_id":72271,"asset_id":107439,"created_at":"2019-06-15T10:52:27.079+08:00","updated_at":"2019-06-15T10:52:27.079+08:00"},{"id":1262587,"file_name":"1.wav","project_id":72271,"asset_id":107438,"created_at":"2019-06-15T10:52:27.081+08:00","updated_at":"2019-06-15T10:52:27.081+08:00"},{"id":1262588,"file_name":"1.png","project_id":72271,"asset_id":107437,"created_at":"2019-06-15T10:52:27.081+08:00","updated_at":"2019-06-15T10:52:27.081+08:00"},{"id":1262589,"file_name":"0.wav","project_id":72271,"asset_id":107436,"created_at":"2019-06-15T10:52:27.082+08:00","updated_at":"2019-06-15T10:52:27.082+08:00"},{"id":1262590,"file_name":"47195.png","project_id":72271,"asset_id":107435,"created_at":"2019-06-15T10:52:27.083+08:00","updated_at":"2019-06-15T10:52:27.083+08:00"},{"id":20146468,"file_name":null,"project_id":72271,"asset_id":8,"created_at":"2024-11-04T00:50:32.353+08:00","updated_at":"2024-11-04T00:50:32.353+08:00"},{"id":20146469,"file_name":null,"project_id":72271,"asset_id":9,"created_at":"2024-11-04T00:50:32.355+08:00","updated_at":"2024-11-04T00:50:32.355+08:00"},{"id":20146470,"file_name":null,"project_id":72271,"asset_id":6,"created_at":"2024-11-04T00:50:32.358+08:00","updated_at":"2024-11-04T00:50:32.358+08:00"},{"id":20146471,"file_name":null,"project_id":72271,"asset_id":7,"created_at":"2024-11-04T00:50:32.361+08:00","updated_at":"2024-11-04T00:50:32.361+08:00"},{"id":20146472,"file_name":null,"project_id":72271,"asset_id":10,"created_at":"2024-11-04T00:50:32.365+08:00","updated_at":"2024-11-04T00:50:32.365+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
語言
中文
简体中文
英文
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦