{"id":294,"date":"2019-06-11T17:23:14","date_gmt":"2019-06-12T00:23:14","guid":{"rendered":"http:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/?p=294"},"modified":"2019-06-18T09:01:54","modified_gmt":"2019-06-18T16:01:54","slug":"day-6-unit-1","status":"publish","type":"post","link":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/class\/day-6-unit-1\/","title":{"rendered":"Day 6 Unit 1"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Unit 1. Squish the Bug! &#8211; Natural Selection<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Today, we are going to start building a game that simulates the process of natural selection. To simulate means to imitate to a certain degree. Simulation is something that scientists do frequently to understand what is happening in complex systems. <\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-2019-summer-code-camp\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"WbIPo7kvxN\"><a href=\"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/class\/day-6-pre-survey\/\">Day 6 pre-survey<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Day 6 pre-survey&#8221; &#8212; 2019 summer code camp\" src=\"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/class\/day-6-pre-survey\/embed\/#?secret=ejWdGDI2Zq#?secret=WbIPo7kvxN\" data-secret=\"WbIPo7kvxN\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Before we start developing this game, Let&#8217;s begin by watching this video together.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Natural Selection and the Rock Pocket Mouse \u2014 HHMI BioInteractive Video\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/sjeSEngKGrg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Why did dark-colored rock pocket mice first appear in a population of light-colored rock pocket mice?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Why do dark-colored rock pocket mice on dark lava flows have white bellies?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Are mutations always good or bad?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What is natural selection? How does it affect the traits of a population?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another video for natural selection:<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Natural Selection\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/7VM9YxmULuo?start=56&#038;feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Open the starter game to get started!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Starter Game: <a href=\"https:\/\/scratch.mit.edu\/projects\/315600955\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">https:\/\/scratch.mit.edu\/projects\/315600955\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Squish the Bug!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How will we know which bugs we have already squashed? Paint a new costume for your beetles that will be the costume when they are clicked on. Then use the event and looks blocks to make your beetles look squashed when they are clicked on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Growing population!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This beetle population is special because they can clone themselves! However right now we only have one bug. Use the control blocks to clone our bugs and grow our population forever.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After you set up the population to grow, use a \u201cwhen I start as a clone\u201d and a motion block to make the new bugs pop up all over your background in random positions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">HINT: Beware of major swarms! Consider using another control block to slow down the growth of the beetles to clone only about every second.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Keeping track of the bugs!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We want to know exactly how many beetles we have at all times. Use a variable block to make sure every time a new beetle appears we add 1 to the \u201clarge beetles\u201d variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Squashed bugs!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bugs that have already been squished should not be included in our \u201clarge beetles\u201d variable. Use a variable block to make sure every time we squish a bug, the \u201clarge beetles\u201d variable changes by -1 so we have an accurate count of bugs.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">So far, we have built the game with elements of natural selection, including &#8220;inheritance&#8221;, &#8220;reproduction&#8221; and &#8220;survival&#8221;. But, there are more elements to natural selection, such as &#8220;variation&#8221;, and &#8220;differential survival or reproduction&#8221;. We are going to continue developing this game tomorrow to include those elements. But, for now, let&#8217;s go back to the games we were working on last week. <br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unit 1. Squish the Bug! &#8211; Natural Selection Today, we are going to start building a game that simulates the process of natural selection. To simulate means to imitate to a certain degree. Simulation is something that scientists do frequently to understand what is happening in complex systems. Before we start developing this game, Let&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-class"],"_links":{"self":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":29,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"predecessor-version":[{"id":618,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/posts\/294\/revisions\/618"}],"wp:attachment":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode_2019\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}