{"id":9800,"student_id":1470,"content":"{\n\t\"objName\": \"Stage\",\n\t\"variables\": [{\n\t\t\t\"name\": \"1st gene\",\n\t\t\t\"value\": \"22323313232213222133111321211331223332212132333221123331212112132112313231113321121122221322311331213132231322123331112331333322221312212121223133123211132333311111313223322312113121231322112111131221113213311222231133221223122333313323213121121222122132331231122221133213332213313231313313313312321332322321321213233121232221131131233113322111121212321323322223131211132131312312112223133213223321112332121311122322113211231323112122331113311221222211213131321311123212311333333121122121133221231111\",\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"1st x\",\n\t\t\t\"value\": 27.554083233269623,\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"2nd gene\",\n\t\t\t\"value\": \"23323221313323113211311222212121322232321113321112223232321133213333212313133111332133322323322121133222133332233113132112133311212213231131321223231123311111331313313221232233213133311313233123213233321322131231232121222232131231233231211232223112222323322121311123313222213333223221322111121321311112232113313233331121322321221233331331122131221213332232133131222223131232333132111232132132221332221231322323222212131311332312122223331222131113311113111221231323132211321322331133332122112321331322\",\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"2nd x\",\n\t\t\t\"value\": -120.7714021656583,\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"is_first\",\n\t\t\t\"value\": \"false\",\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"i\",\n\t\t\t\"value\": 26517,\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"gene length\",\n\t\t\t\"value\": \"500\",\n\t\t\t\"isPersistent\": false\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Generation\",\n\t\t\t\"value\": 2,\n\t\t\t\"isPersistent\": false\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\": \"31f59fcf076a8979ba57c91cfeefbf2b.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\": \"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\"variables\": [{\n\t\t\t\t\t\"name\": \"Gene\",\n\t\t\t\t\t\"value\": \"\",\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\": \"gene index\",\n\t\t\t\t\t\"value\": 501,\n\t\t\t\t\t\"isPersistent\": false\n\t\t\t\t}],\n\t\t\t\"scripts\": [[32.3,\n\t\t\t\t\t75.15,\n\t\t\t\t\t[[\"whenGreenFlag\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"Generation\", \"0\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"gene length\", \"500\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"is_first\", \"true\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"Gene\", \"\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"1st x\", \"-240\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"2nd x\", \"-240\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"1st gene\", \"\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"2nd gene\", \"\"],\n\t\t\t\t\t\t[\"gotoX:y:\", -210, -25],\n\t\t\t\t\t\t[\"heading:\", 90],\n\t\t\t\t\t\t[\"doForever\",\n\t\t\t\t\t\t\t[[\"doRepeat\", 50, [[\"createCloneOf\", \"_myself_\"]]],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"1st x\", \"-240\"],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"2nd x\", \"-240\"],\n\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"Generation\", 1],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"is_first\", \"false\"],\n\t\t\t\t\t\t\t\t[\"wait:elapsed:from:\", 13]]]]],\n\t\t\t\t[323.85,\n\t\t\t\t\t56.8,\n\t\t\t\t\t[[\"whenCloned\"],\n\t\t\t\t\t\t[\"changeVar:by:\", \"i\", 1],\n\t\t\t\t\t\t[\"setVar:to:\", \"gene index\", \"1\"],\n\t\t\t\t\t\t[\"setVar:to:\", \"Gene\", \"\"],\n\t\t\t\t\t\t[\"doIfElse\",\n\t\t\t\t\t\t\t[\"=\", [\"readVariable\", \"is_first\"], \"true\"],\n\t\t\t\t\t\t\t[[\"doRepeat\",\n\t\t\t\t\t\t\t\t\t[\"readVariable\", \"gene length\"],\n\t\t\t\t\t\t\t\t\t[[\"setVar:to:\", \"Gene\", [\"concatenate:with:\", [\"readVariable\", \"Gene\"], [\"randomFrom:to:\", 1, 3]]],\n\t\t\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"gene index\", 1]]]],\n\t\t\t\t\t\t\t[[\"doRepeat\",\n\t\t\t\t\t\t\t\t\t[\"readVariable\", \"gene length\"],\n\t\t\t\t\t\t\t\t\t[[\"doIfElse\",\n\t\t\t\t\t\t\t\t\t\t\t[\"\u003c\", [\"randomFrom:to:\", 1, 1000], \"15\"],\n\t\t\t\t\t\t\t\t\t\t\t[[\"setVar:to:\", \"Gene\", [\"concatenate:with:\", [\"readVariable\", \"Gene\"], [\"randomFrom:to:\", 1, 3]]]],\n\t\t\t\t\t\t\t\t\t\t\t[[\"doIfElse\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t[\"=\", [\"randomFrom:to:\", 0, 1], \"0\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t[[\"setVar:to:\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Gene\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[\"concatenate:with:\", [\"readVariable\", \"Gene\"], [\"letter:of:\", [\"readVariable\", \"gene index\"], [\"readVariable\", \"1st gene\"]]]]],\n\t\t\t\t\t\t\t\t\t\t\t\t\t[[\"setVar:to:\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Gene\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[\"concatenate:with:\", [\"readVariable\", \"Gene\"], [\"letter:of:\", [\"readVariable\", \"gene index\"], [\"readVariable\", \"2nd gene\"]]]]]]]],\n\t\t\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"gene index\", 1]]]]],\n\t\t\t\t\t\t[\"setVar:to:\", \"gene index\", \"1\"],\n\t\t\t\t\t\t[\"doRepeat\",\n\t\t\t\t\t\t\t[\"readVariable\", \"gene length\"],\n\t\t\t\t\t\t\t[[\"doIfElse\",\n\t\t\t\t\t\t\t\t\t[\"touching:\", \"角色1\"],\n\t\t\t\t\t\t\t\t\t[[\"doIf\",\n\t\t\t\t\t\t\t\t\t\t\t[\"\u003e\", [\"xpos\"], [\"readVariable\", \"1st x\"]],\n\t\t\t\t\t\t\t\t\t\t\t[[\"setVar:to:\", \"2nd x\", [\"readVariable\", \"1st x\"]],\n\t\t\t\t\t\t\t\t\t\t\t\t[\"setVar:to:\", \"2nd gene\", [\"readVariable\", \"1st gene\"]],\n\t\t\t\t\t\t\t\t\t\t\t\t[\"setVar:to:\", \"1st x\", [\"xpos\"]],\n\t\t\t\t\t\t\t\t\t\t\t\t[\"setVar:to:\", \"1st gene\", [\"readVariable\", \"Gene\"]]]],\n\t\t\t\t\t\t\t\t\t\t[\"wait:elapsed:from:\", 3],\n\t\t\t\t\t\t\t\t\t\t[\"deleteClone\"]],\n\t\t\t\t\t\t\t\t\t[[\"doIf\",\n\t\t\t\t\t\t\t\t\t\t\t[\"=\", [\"letter:of:\", [\"readVariable\", \"gene index\"], [\"readVariable\", \"Gene\"]], \"1\"],\n\t\t\t\t\t\t\t\t\t\t\t[[\"forward:\", 2]]],\n\t\t\t\t\t\t\t\t\t\t[\"doIf\",\n\t\t\t\t\t\t\t\t\t\t\t[\"=\", [\"letter:of:\", [\"readVariable\", \"gene index\"], [\"readVariable\", \"Gene\"]], \"2\"],\n\t\t\t\t\t\t\t\t\t\t\t[[\"turnLeft:\", 10]]],\n\t\t\t\t\t\t\t\t\t\t[\"doIf\",\n\t\t\t\t\t\t\t\t\t\t\t[\"=\", [\"letter:of:\", [\"readVariable\", \"gene index\"], [\"readVariable\", \"Gene\"]], \"3\"],\n\t\t\t\t\t\t\t\t\t\t\t[[\"turnRight:\", 10]]],\n\t\t\t\t\t\t\t\t\t\t[\"changeVar:by:\", \"gene index\", 1]]]]],\n\t\t\t\t\t\t[\"doIf\",\n\t\t\t\t\t\t\t[\"\u003e\", [\"xpos\"], [\"readVariable\", \"1st x\"]],\n\t\t\t\t\t\t\t[[\"setVar:to:\", \"2nd x\", [\"readVariable\", \"1st x\"]],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"2nd gene\", [\"readVariable\", \"1st gene\"]],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"1st x\", [\"xpos\"]],\n\t\t\t\t\t\t\t\t[\"setVar:to:\", \"1st gene\", [\"readVariable\", \"Gene\"]]]],\n\t\t\t\t\t\t[\"wait:elapsed:from:\", 3],\n\t\t\t\t\t\t[\"deleteClone\"]]]],\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\": \"造型1\",\n\t\t\t\t\t\"baseLayerID\": -1,\n\t\t\t\t\t\"baseLayerMD5\": \"0c6862d77d7f2ee2bbd9e82a05e82162.png\",\n\t\t\t\t\t\"bitmapResolution\": 2,\n\t\t\t\t\t\"rotationCenterX\": 48,\n\t\t\t\t\t\"rotationCenterY\": 64\n\t\t\t\t}],\n\t\t\t\"currentCostumeIndex\": 0,\n\t\t\t\"scratchX\": -210,\n\t\t\t\"scratchY\": -25,\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\": \"is_first\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"is_first\",\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\": 221,\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\": \"i\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"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\": 167,\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\": \"gene length\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"gene length\",\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\": 194,\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\": \"gene index\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"koding: gene index\",\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\"target\": \"Stage\",\n\t\t\t\"cmd\": \"getVar:\",\n\t\t\t\"param\": \"2nd x\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"2nd x\",\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\": 216.85,\n\t\t\t\"y\": 1.65,\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\": \"1st gene\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"1st gene\",\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\": 59,\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\": \"2nd gene\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"2nd gene\",\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\": 113,\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\": \"Gene\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"koding: Gene\",\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\": 29.4,\n\t\t\t\"visible\": false\n\t\t},\n\t\t{\n\t\t\t\"objName\": \"角色1\",\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\": \"f119d008026d7ac4b435baca813a87d5.svg\",\n\t\t\t\t\t\"bitmapResolution\": 1,\n\t\t\t\t\t\"rotationCenterX\": 158,\n\t\t\t\t\t\"rotationCenterY\": 181\n\t\t\t\t}],\n\t\t\t\"currentCostumeIndex\": 0,\n\t\t\t\"scratchX\": 65,\n\t\t\t\"scratchY\": -24,\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\": 2,\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\": \"Generation\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"Generation\",\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\": 6.85,\n\t\t\t\"y\": 5.2,\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\": \"1st x\",\n\t\t\t\"color\": 15629590,\n\t\t\t\"label\": \"1st x\",\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\": 130.6,\n\t\t\t\"y\": 5.3,\n\t\t\t\"visible\": true\n\t\t}],\n\t\"info\": {\n\t\t\"swfVersion\": \"v454\",\n\t\t\"spriteCount\": 2,\n\t\t\"hasCloudData\": false,\n\t\t\"videoOn\": false,\n\t\t\"flashVersion\": \"MAC 26,0,0,151\",\n\t\t\"userAgent\": \"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/60.0.3112.101 Safari\\/537.36\",\n\t\t\"scriptCount\": 2,\n\t\t\"projectID\": \"projects_2pds99pj\"\n\t}\n}","created_at":"2017-03-01T20:52:04.672+08:00","updated_at":"2019-11-10T20:17:28.762+08:00","name":"Genetic Algorithm Scratch","language":"scratch3","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/9800/ca87c7652207e41235d94f83c0429f4f.jpg"},"parent_id":1,"plugin":null,"description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":501,"hashid":"2pds99pj","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":19308549,"file_name":null,"project_id":9800,"asset_id":26228,"created_at":"2024-11-03T23:50:50.584+08:00","updated_at":"2024-11-03T23:50:50.584+08:00"},{"id":19308550,"file_name":null,"project_id":9800,"asset_id":9,"created_at":"2024-11-03T23:50:50.586+08:00","updated_at":"2024-11-03T23:50:50.586+08:00"},{"id":19308551,"file_name":null,"project_id":9800,"asset_id":6,"created_at":"2024-11-03T23:50:50.589+08:00","updated_at":"2024-11-03T23:50:50.589+08:00"},{"id":19308552,"file_name":null,"project_id":9800,"asset_id":26225,"created_at":"2024-11-03T23:50:50.591+08:00","updated_at":"2024-11-03T23:50:50.591+08:00"},{"id":19308553,"file_name":null,"project_id":9800,"asset_id":10,"created_at":"2024-11-03T23:50:50.595+08:00","updated_at":"2024-11-03T23:50:50.595+08:00"},{"id":19308554,"file_name":null,"project_id":9800,"asset_id":26238,"created_at":"2024-11-03T23:50:50.598+08:00","updated_at":"2024-11-03T23:50:50.598+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
語言
中文
简体中文
英文
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦