{"id":103,"date":"2026-01-16T16:28:51","date_gmt":"2026-01-16T16:28:51","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/d_harkless\/?p=103"},"modified":"2026-01-16T16:28:51","modified_gmt":"2026-01-16T16:28:51","slug":"free-friday-1-16-26","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/d_harkless\/2026\/01\/16\/free-friday-1-16-26\/","title":{"rendered":"Free Friday 1-16-26"},"content":{"rendered":"\n<p>Today in class, I made a Hangman game.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"179\" height=\"132\" src=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/01\/image-2.png\" alt=\"\" class=\"wp-image-104\" style=\"width:232px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"216\" height=\"155\" src=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/01\/image-3.png\" alt=\"\" class=\"wp-image-105\" style=\"width:243px;height:auto\"\/><\/figure>\n\n\n\n<p>This is the list of words I used:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>words = (\"aardvark\", \"alligator\", \"alpaca\", \"ant\", \"anteater\", \"antelope\", \"ape\", \"armadillo\", \"baboon\", \"badger\", \"bat\", \"bear\", \"beaver\", \"bee\", \"bison\", \"boar\", \"buffalo\", \"butterfly\", \"camel\", \"capybara\", \"caribou\", \"cat\", \"caterpillar\", \"cattle\", \"chamois\", \"cheetah\", \"chicken\", \"chimpanzee\", \"chinchilla\", \"chough\", \"clam\", \"cobra\", \"cockroach\", \"cod\", \"coyote\", \"crab\", \"crane\", \"crocodile\", \"crow\", \"curlew\", \"deer\", \"dinosaur\", \"dog\", \"dogfish\", \"dolphin\", \"donkey\", \"dormouse\", \"dotterel\", \"dove\", \"dragonfly\", \"duck\", \"dugong\", \"dunlin\", \"eagle\", \"echidna\", \"eel\", \"eland\", \"elephant\",  \"elk\", \"emu\", \"falcon\", \"ferret\", \"finch\", \"fish\", \"flamingo\", \"fly\", \"fox\", \"frog\", \"gaur\", \"gazelle\", \"gerbil\", \"giraffe\", \"gnat\", \"gnu\", \"goat\", \"goldfinch\", \"goldfish\", \"goose\", \"gorilla\", \"goshawk\", \"grasshopper\", \"grouse\", \"guanaco\", \"gull\", \"hamster\", \"hare\", \"hawk\", \"hedgehog\", \"heron\", \"herring\", \"hippopotamus\", \"hornet\", \"horse\", \"human\", \"hummingbird\", \"hyena\", \"ibex\", \"ibis\", \"jackal\", \"jaguar\", \"jay\", \"jellyfish\", \"kangaroo\", \"kingfisher\", \"koala\", \"kookabura\", \"kouprey\", \"kudu\", \"lapwing\", \"lark\", \"lemur\", \"leopard\", \"lion\", \"llama\", \"lobster\", \"locust\", \"loris\", \"louse\", \"lyrebird\", \"magpie\", \"mallard\", \"manatee\", \"mandrill\", \"mantis\", \"marten\", \"meerkat\", \"mink\", \"mole\", \"mongoose\", \"monkey\", \"moose\", \"mosquito\", \"mouse\", \"mule\", \"narwhal\", \"newt\", \"nightingale\", \"octopus\", \"okapi\", \"opossum\", \"oryx\", \"ostrich\", \"otter\", \"owl\", \"ox\", \"oyster\", \"panda\", \"panther\", \"parrot\", \"partridge\", \"peafowl\", \"pelican\", \"penguin\", \"pheasant\", \"pig\", \"pigeon\", \"polar-bear\", \"pony\", \"porcupine\", \"porpoise\", \"quail\", \"quelea\", \"quetzal\", \"rabbit\", \"raccoon\", \"rail\", \"ram\", \"rat\", \"raven\", \"red-deer\", \"red-panda\", \"reindeer\", \"rhinoceros\", \"rook\", \"salamander\", \"salmon\", \"sand-dollar\", \"sandpiper\", \"sardine\", \"scorpion\", \"seahorse\", \"seal\", \"shark\", \"sheep\", \"shrew\", \"skunk\", \"snail\", \"snake\", \"sparrow\", \"spider\", \"spoonbill\", \"squid\", \"squirrel\", \"starling\", \"stingray\", \"stoat\", \"stork\", \"swallow\", \"swan\", \"tapir\", \"tarsier\", \"termite\", \"tiger\", \"toad\", \"trout\", \"turkey\", \"turtle\", \"viper\", \"vulture\", \"wallaby\", \"walrus\", \"wasp\", \"weasel\", \"whale\", \"wildcat\", \"wolf\", \"wolverine\", \"wombat\", \"woodcock\", \"woodpecker\", \"worm\", \"wren\", \"yak\", \"zebra\")<\/code><\/pre>\n\n\n\n<p>This is the code for the hangman body:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hangman_art = {0: (\"   \",\n                   \"   \",\n                   \"   \"),\n                   1: (\" o \",\n                    \"   \",\n                    \"   \"),\n                   2: (\" o \",\n                       \" | \",\n                        \"   \"),\n                    3: (\" o \",\n                        \"\/| \",\n                        \"   \"),\n                    4: (\" o \",\n                        \"\/|\\\\\",\n                        \"   \"),\n                    5: (\" o \",\n                        \"\/|\\\\\",\n                        \"\/  \"),\n                    6: (\" o \",\n                        \"\/|\\\\\",\n                        \"\/ \\\\\")}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"908\" src=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/01\/image-5.png\" alt=\"\" class=\"wp-image-107\" style=\"aspect-ratio:0.6057310186153524;width:384px;height:auto\" srcset=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/01\/image-5.png 550w, https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/01\/image-5-182x300.png 182w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Let&#039;s code a HANGMAN GAME in Python! \ud83d\udd7a\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/ag8NtD1e0Kc?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","protected":false},"excerpt":{"rendered":"<p>Today in class, I made a Hangman game. This is the list of words I used: This is the code for the hangman body:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/posts\/103\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}