{"id":83,"date":"2022-12-07T00:29:36","date_gmt":"2022-12-07T00:29:36","guid":{"rendered":"https:\/\/eric.tedjamulia.com\/blog\/rebecca-color-test\/"},"modified":"2026-10-29T05:11:03","modified_gmt":"2026-10-29T05:11:03","slug":"rebecca-color-test","status":"publish","type":"post","link":"https:\/\/eric.tedjamulia.com\/blog\/rebecca-color-test\/","title":{"rendered":"Can you spot the different color?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">One of the things I like about teaching Rebecca to program is getting to make little games together. This time we made four squares that look almost the same, except one is a slightly different color. Pick that one. It gets surprisingly hard!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I wanted to practice random numbers and keeping score. We start with one RGB color, choose a random square, and change its color just a little. The difficulty buttons change how big that difference can be. It is a nice example of making the same code do something different by changing a variable instead of writing three separate games.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"450\" src=\"https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2022\/12\/rebecca-color-test-screenshot.png\" alt=\"Four colored squares and difficulty choices in Rebecca&#039;s Color Test.\" class=\"wp-image-98\" srcset=\"https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2022\/12\/rebecca-color-test-screenshot.png 320w, https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2022\/12\/rebecca-color-test-screenshot-213x300.png 213w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/studio.code.org\/projects\/applab\/a9d650b8-f9de-4e23-be1a-69e2d91d8051\">Try Color Test on Code.org.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things I like about teaching Rebecca to program is getting to make little games together. This time we made four squares that look almost the same, except one is a slightly different color. Pick that one. It gets surprisingly hard! I wanted to practice random numbers and keeping score. We start with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[73,5,3,25],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-programming-with-kids","tag-code-org","tag-family","tag-javascript","tag-teaching"],"_links":{"self":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":1,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}