{"id":296,"date":"2019-06-13T20:39:59","date_gmt":"2019-06-14T03:39:59","guid":{"rendered":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/?p=296"},"modified":"2023-06-13T07:26:29","modified_gmt":"2023-06-13T14:26:29","slug":"day-6-unit-1","status":"publish","type":"post","link":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/class\/day-6-unit-1\/","title":{"rendered":"Day 4 Unit 2"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Unit 1. Bug competition!<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s continue with &#8220;Squash the bug!&#8221; game we were working on. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we said earlier, for natural selection to occur we need &#8220;variation&#8221; and &#8220;differential survival or reproduction&#8221;. We are going to introduce those elements to the game today. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your game didn&#8217;t save properly or you want to start where we left off, this starter project has all the code from the last unit:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/scratch.mit.edu\/projects\/317381247\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">https:\/\/scratch.mit.edu\/projects\/317381247<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A new type of beetle is in town!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s create a cousin of our large beetles, called the small beetles. Duplicate your LargeBeetle sprite by right clicking on it and selecting \u201cduplicate.\u201d Rename your new sprite \u201cSmallBeetle\u201d and change the size of it so it really is a smaller. Then go to the costumes tab and change the colors of your new sprite to something unique!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.08.56-AM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"592\" src=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.08.56-AM.png\" alt=\"\" class=\"wp-image-1083\" srcset=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.08.56-AM.png 824w, https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.08.56-AM-300x216.png 300w, https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.08.56-AM-768x552.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.10.58-AM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"826\" height=\"588\" src=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.10.58-AM.png\" alt=\"\" class=\"wp-image-1085\" srcset=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.10.58-AM.png 826w, https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.10.58-AM-300x214.png 300w, https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.10.58-AM-768x547.png 768w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 6:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Keeping track of small beetles!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Similar to step 3, we want to be sure to keep track of our small beetles too. Alter your code for the SmallBeetle sprite to use the \u201csmall beetles\u201d variable instead of the \u201clarge beetles\u201d variable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.16.12-AM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"728\" src=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.16.12-AM.png\" alt=\"\" class=\"wp-image-1086\" srcset=\"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.16.12-AM.png 900w, https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.16.12-AM-300x243.png 300w, https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-28-at-10.16.12-AM-768x621.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Now it\u2019s time to play the game!&nbsp;<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click&nbsp;<strong>Share<\/strong>&nbsp;button on the top of the page.<\/li>\n\n\n\n<li>Click on&nbsp;<strong>+add to studio&nbsp;<\/strong>button at the bottom of the page<\/li>\n\n\n\n<li>Choose\u00a0<strong>2023 summer code camp<\/strong><\/li>\n\n\n\n<li>Click okay<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Wrap-up: Show your project<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>click on your account name at the top right of the page.<\/li>\n\n\n\n<li>Select&nbsp;<strong>My Class<\/strong><\/li>\n\n\n\n<li>Click on Class Studios \u2013\u00a0<strong>2023 summer code camp<\/strong><\/li>\n\n\n\n<li>Check out your friends projects!<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Start playing your game and notice whether it\u2019s easier to squish the small beetles or the large beetles. What happens to the numbers of small and large beetles as you continue playing the game? Which group do you think has a higher fitness or, in other words, is better able to avoid your squishing?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How do you think this population would evolve based on your findings?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What is the &#8220;variation&#8221; in our game?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How is the &#8220;variation&#8221; linked with differential survival and reproduction?<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unit 1. Bug competition! Let&#8217;s continue with &#8220;Squash the bug!&#8221; game we were working on. As we said earlier, for natural selection to occur we need &#8220;variation&#8221; and &#8220;differential survival or reproduction&#8221;. We are going to introduce those elements to the game today. If your game didn&#8217;t save properly or you want to start where [&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-296","post","type-post","status-publish","format-standard","hentry","category-class"],"_links":{"self":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":34,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":1442,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/posts\/296\/revisions\/1442"}],"wp:attachment":[{"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mirahan.faculty.unlv.edu\/summercode2023\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}