{"id":31776,"student_id":104,"content":"{\n\t\"objName\": \"Stage\",\n\t\"variables\": [{\n\t\t\t\"name\": \"回合\",\n\t\t\t\"value\": \"1\",\n\t\t\t\"isPersistent\": false\n\t\t}],\n\t\"lists\": [{\n\t\t\t\"listName\": \"優勢基因\",\n\t\t\t\"contents\": [0, 0, 1, 1, 0, 1, 1],\n\t\t\t\"isPersistent\": false,\n\t\t\t\"x\": 365,\n\t\t\t\"y\": 15,\n\t\t\t\"width\": 111,\n\t\t\t\"height\": 204,\n\t\t\t\"visible\": true\n\t\t}],\n\t\"scripts\": [[43, 19, [[\"whenGreenFlag\"], [\"setVar:to:\", \"回合\", \"1\"]]],\n\t\t[44, 119, [[\"whenIReceive\", \"回合結束\"], [\"changeVar:by:\", \"回合\", 1]]]],\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\": \"bef6e32a44098e1d3200fb91d0429cbf.svg\",\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\": \"ff4206c01fddc86a1815317c3ab5ff49.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\"variables\": [{\n\t\t\t\t\t\"name\": \"\\u0008基因\",\n\t\t\t\t\t\"value\": 0,\n\t\t\t\t\t\"isPersistent\": false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"i\",\n\t\t\t\t\t\"value\": 11,\n\t\t\t\t\t\"isPersistent\": false\n\t\t\t\t}],\n\t\t\t\"lists\": [{\n\t\t\t\t\t\"listName\": \"自己的基因\",\n\t\t\t\t\t\"contents\": [0, 0, 1, 1, 0, 1, 1, 0, 0, 0, \"thing\"],\n\t\t\t\t\t\"isPersistent\": false,\n\t\t\t\t\t\"x\": 8,\n\t\t\t\t\t\"y\": 16,\n\t\t\t\t\t\"width\": 133,\n\t\t\t\t\t\"height\": 204,\n\t\t\t\t\t\"visible\": true\n\t\t\t\t}],\n\t\t\t\"scripts\": [[1769,\n\t\t\t\t\t82,\n\t\t\t\t\t[[\"procDef\", \"設定優勢基因為自己的基因\", [], [], false],\n\t\t\t\t\t\t[\"setVar:to:\", \"i\", \"1\"],\n\t\t\t\t\t\t[\"doRepeat\",\n\t\t\t\t\t\t\t7,\n\t\t\t\t\t\t\t[[\"setLine:ofList:to:\", [\"readVariable\", \"i\"], \"優勢基因\", [\"getLine:ofList:\", [\"readVariable\", \"i\"], \"自己的基因\"]],\n\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"i\", 1]]]]],\n\t\t\t\t[1767.4,\n\t\t\t\t\t612.35,\n\t\t\t\t\t[[\"procDef\", \"回合開始\", [], [], false],\n\t\t\t\t\t\t[\"doRepeat\", 5, [[\"createCloneOf\", \"_myself_\"]]],\n\t\t\t\t\t\t[\"wait:elapsed:from:\", 3],\n\t\t\t\t\t\t[\"doBroadcastAndWait\", \"開始判定優勝基因\"],\n\t\t\t\t\t\t[\"wait:elapsed:from:\", 4],\n\t\t\t\t\t\t[\"call\", \"回合開始\"]]],\n\t\t\t\t[1763.2,\n\t\t\t\t\t338.65,\n\t\t\t\t\t[[\"procDef\", \"設定自己的基因為優勢基因\", [], [], false],\n\t\t\t\t\t\t[\"deleteLine:ofList:\", \"all\", \"自己的基因\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"i\", \"1\"],\n\t\t\t\t\t\t[\"doRepeat\",\n\t\t\t\t\t\t\t7,\n\t\t\t\t\t\t\t[[\"append:toList:\", [\"getLine:ofList:\", [\"readVariable\", \"i\"], \"優勢基因\"], \"自己的基因\"], [\"changeVar:by:\", \"i\", 1]]]]],\n\t\t\t\t[477.45, 540.8, [[\"whenIReceive\", \"回合結束\"], [\"deleteClone\"]]],\n\t\t\t\t[516,\n\t\t\t\t\t89.95,\n\t\t\t\t\t[[\"whenGreenFlag\"],\n\t\t\t\t\t\t[\"hide\"],\n\t\t\t\t\t\t[\"setSizeTo:\", 20],\n\t\t\t\t\t\t[\"gotoX:y:\", 0, -80],\n\t\t\t\t\t\t[\"show\"],\n\t\t\t\t\t\t[\"deleteLine:ofList:\", \"all\", \"優勢基因\"],\n\t\t\t\t\t\t[\"doRepeat\", 7, [[\"append:toList:\", [\"randomFrom:to:\", 0, 1], \"優勢基因\"]]],\n\t\t\t\t\t\t[\"call\", \"回合開始\"]]],\n\t\t\t\t[11.5,\n\t\t\t\t\t11.7,\n\t\t\t\t\t[[\"whenCloned\"],\n\t\t\t\t\t\t[\"show\"],\n\t\t\t\t\t\t[\"say:duration:elapsed:from:\", \"Hello! 我是新的後代~\", 1],\n\t\t\t\t\t\t[\"call\", \"設定自己的基因為優勢基因\"],\n\t\t\t\t\t\t[\"say:duration:elapsed:from:\", \"我要突變囉\", 1],\n\t\t\t\t\t\t[\"setLine:ofList:to:\", [\"randomFrom:to:\", 1, 7], \"自己的基因\", [\"randomFrom:to:\", 1, 0]],\n\t\t\t\t\t\t[\"setVar:to:\", \"i\", \"1\"],\n\t\t\t\t\t\t[\"doRepeat\",\n\t\t\t\t\t\t\t7,\n\t\t\t\t\t\t\t[[\"doIfElse\",\n\t\t\t\t\t\t\t\t\t[\"=\", [\"getLine:ofList:\", [\"readVariable\", \"i\"], \"自己的基因\"], \"0\"],\n\t\t\t\t\t\t\t\t\t[[\"changeXposBy:\", -30]],\n\t\t\t\t\t\t\t\t\t[[\"changeXposBy:\", 30]]],\n\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"i\", 1],\n\t\t\t\t\t\t\t\t[\"doIf\",\n\t\t\t\t\t\t\t\t\t[\"touching:\", \"目標\"],\n\t\t\t\t\t\t\t\t\t[[\"call\", \"設定優勢基因為自己的基因\"], [\"say:duration:elapsed:from:\", \"不用比,我最強\", 1], [\"stopScripts\", \"all\"]]]]],\n\t\t\t\t\t\t[\"doWaitUntil\", [\"touching:\", \"目標\"]],\n\t\t\t\t\t\t[\"say:duration:elapsed:from:\", \"我是優勢基因\", 1],\n\t\t\t\t\t\t[\"say:duration:elapsed:from:\", \"所以我要生小孩\", 1],\n\t\t\t\t\t\t[\"call\", \"設定優勢基因為自己的基因\"],\n\t\t\t\t\t\t[\"broadcast:\", \"回合結束\"]]]],\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\": 0,\n\t\t\t\"scratchY\": -80,\n\t\t\t\"scale\": 0.2,\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\"objName\": \"框框\",\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[\"clearPenTrails\"],\n\t\t\t\t\t\t[\"setSizeTo:\", 60],\n\t\t\t\t\t\t[\"show\"],\n\t\t\t\t\t\t[\"gotoX:y:\", -210, -80],\n\t\t\t\t\t\t[\"doRepeat\", 15, [[\"stampCostume\"], [\"changeXposBy:\", 30]]],\n\t\t\t\t\t\t[\"hide\"]]]],\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\"costumes\": [{\n\t\t\t\t\t\"costumeName\": \"造型1\",\n\t\t\t\t\t\"baseLayerID\": -1,\n\t\t\t\t\t\"baseLayerMD5\": \"43bb1b2da7e6fe9f43e2723053e23baa.svg\",\n\t\t\t\t\t\"bitmapResolution\": 1,\n\t\t\t\t\t\"rotationCenterX\": 25,\n\t\t\t\t\t\"rotationCenterY\": 25\n\t\t\t\t}],\n\t\t\t\"currentCostumeIndex\": 0,\n\t\t\t\"scratchX\": 240,\n\t\t\t\"scratchY\": -80,\n\t\t\t\"scale\": 0.6,\n\t\t\t\"direction\": 90,\n\t\t\t\"rotationStyle\": \"normal\",\n\t\t\t\"isDraggable\": false,\n\t\t\t\"indexInLibrary\": 2,\n\t\t\t\"visible\": false,\n\t\t\t\"spriteInfo\": {\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"target\": \"koding\",\n\t\t\t\"cmd\": \"getVar:\",\n\t\t\t\"param\": \"\\u0008基因\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"koding: \\u0008基因\",\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\": 5,\n\t\t\t\"visible\": false\n\t\t},\n\t\t{\n\t\t\t\"target\": \"koding\",\n\t\t\t\"cmd\": \"getVar:\",\n\t\t\t\"param\": \"i\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"koding: i\",\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\": 32,\n\t\t\t\"visible\": false\n\t\t},\n\t\t{\n\t\t\t\"objName\": \"目標\",\n\t\t\t\"scripts\": [[45, 21, [[\"whenGreenFlag\"], [\"gotoX:y:\", 210, -80]]],\n\t\t\t\t[37,\n\t\t\t\t\t110,\n\t\t\t\t\t[[\"whenIReceive\", \"開始判定優勝基因\"], [\"doUntil\", [\"touching:\", \"koding\"], [[\"changeXposBy:\", -4]]]]],\n\t\t\t\t[36, 238, [[\"whenIReceive\", \"回合結束\"], [\"gotoX:y:\", 210, -80]]]],\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\"costumes\": [{\n\t\t\t\t\t\"costumeName\": \"造型1\",\n\t\t\t\t\t\"baseLayerID\": -1,\n\t\t\t\t\t\"baseLayerMD5\": \"f83eee4533e88c369c5199355dd5a6bf.png\",\n\t\t\t\t\t\"bitmapResolution\": 2,\n\t\t\t\t\t\"rotationCenterX\": 24,\n\t\t\t\t\t\"rotationCenterY\": 26\n\t\t\t\t}],\n\t\t\t\"currentCostumeIndex\": 0,\n\t\t\t\"scratchX\": 26,\n\t\t\t\"scratchY\": -80,\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\": 3,\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\": \"回合\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"回合\",\n\t\t\t\"mode\": 2,\n\t\t\t\"sliderMin\": 0,\n\t\t\t\"sliderMax\": 100,\n\t\t\t\"isDiscrete\": true,\n\t\t\t\"x\": 237,\n\t\t\t\"y\": 15,\n\t\t\t\"visible\": true\n\t\t},\n\t\t{\n\t\t\t\"listName\": \"自己的基因\",\n\t\t\t\"contents\": [0, 0, 1, 1, 0, 1, 1, 0, 0, 0, \"thing\"],\n\t\t\t\"isPersistent\": false,\n\t\t\t\"x\": 8,\n\t\t\t\"y\": 16,\n\t\t\t\"width\": 133,\n\t\t\t\"height\": 204,\n\t\t\t\"visible\": true\n\t\t},\n\t\t{\n\t\t\t\"listName\": \"優勢基因\",\n\t\t\t\"contents\": [0, 0, 1, 1, 0, 1, 1],\n\t\t\t\"isPersistent\": false,\n\t\t\t\"x\": 365,\n\t\t\t\"y\": 15,\n\t\t\t\"width\": 111,\n\t\t\t\"height\": 204,\n\t\t\t\"visible\": true\n\t\t}],\n\t\"info\": {\n\t\t\"videoOn\": false,\n\t\t\"flashVersion\": \"WIN 30,0,0,113\",\n\t\t\"hasCloudData\": false,\n\t\t\"userAgent\": \"Mozilla\\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/67.0.3396.99 Safari\\/537.36\",\n\t\t\"scriptCount\": 12,\n\t\t\"projectID\": \"projects_kdms8368\",\n\t\t\"spriteCount\": 3,\n\t\t\"swfVersion\": \"v454\"\n\t}\n}","created_at":"2018-06-21T14:49:31.377+08:00","updated_at":"2019-11-11T06:22:11.019+08:00","name":"用演化演算法走一維迷宮","language":"scratch3","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/31776/6fc6aed8090c62881a9e738aeba0cdd0.jpg"},"parent_id":30396,"plugin":null,"description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":72,"hashid":"kdms8368","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":593004,"file_name":"4.png","project_id":31776,"asset_id":68756,"created_at":"2018-06-21T14:49:31.387+08:00","updated_at":"2018-06-21T14:49:31.387+08:00"},{"id":593005,"file_name":"3.svg","project_id":31776,"asset_id":68755,"created_at":"2018-06-21T14:49:31.388+08:00","updated_at":"2018-06-21T14:49:31.388+08:00"},{"id":593006,"file_name":"2.svg","project_id":31776,"asset_id":68754,"created_at":"2018-06-21T14:49:31.390+08:00","updated_at":"2018-06-21T14:49:31.390+08:00"},{"id":593007,"file_name":"1.wav","project_id":31776,"asset_id":68753,"created_at":"2018-06-21T14:49:31.391+08:00","updated_at":"2018-06-21T14:49:31.391+08:00"},{"id":593008,"file_name":"1.svg","project_id":31776,"asset_id":68752,"created_at":"2018-06-21T14:49:31.393+08:00","updated_at":"2018-06-21T14:49:31.393+08:00"},{"id":593009,"file_name":"0.wav","project_id":31776,"asset_id":68751,"created_at":"2018-06-21T14:49:31.394+08:00","updated_at":"2018-06-21T14:49:31.394+08:00"},{"id":593010,"file_name":"0.png","project_id":31776,"asset_id":68750,"created_at":"2018-06-21T14:49:31.395+08:00","updated_at":"2018-06-21T14:49:31.395+08:00"},{"id":19572679,"file_name":null,"project_id":31776,"asset_id":58300,"created_at":"2024-11-04T00:10:45.958+08:00","updated_at":"2024-11-04T00:10:45.958+08:00"},{"id":19572680,"file_name":null,"project_id":31776,"asset_id":9,"created_at":"2024-11-04T00:10:45.961+08:00","updated_at":"2024-11-04T00:10:45.961+08:00"},{"id":19572681,"file_name":null,"project_id":31776,"asset_id":7,"created_at":"2024-11-04T00:10:45.964+08:00","updated_at":"2024-11-04T00:10:45.964+08:00"},{"id":19572682,"file_name":null,"project_id":31776,"asset_id":10,"created_at":"2024-11-04T00:10:45.968+08:00","updated_at":"2024-11-04T00:10:45.968+08:00"},{"id":19572683,"file_name":null,"project_id":31776,"asset_id":58298,"created_at":"2024-11-04T00:10:45.971+08:00","updated_at":"2024-11-04T00:10:45.971+08:00"},{"id":19572684,"file_name":null,"project_id":31776,"asset_id":58299,"created_at":"2024-11-04T00:10:45.975+08:00","updated_at":"2024-11-04T00:10:45.975+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
語言
中文
简体中文
英文
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦