{"id":51,"date":"2025-10-17T13:39:14","date_gmt":"2025-10-17T13:39:14","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/d_bhujel\/?p=51"},"modified":"2025-10-17T13:39:15","modified_gmt":"2025-10-17T13:39:15","slug":"hangman-game","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/d_bhujel\/2025\/10\/17\/hangman-game\/","title":{"rendered":"Hangman game"},"content":{"rendered":"\n<p>today for free friday I followed a video and made a hang man game<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"439\" height=\"342\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-5.png\" alt=\"\" class=\"wp-image-52\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-5.png 439w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-5-300x234.png 300w\" sizes=\"auto, (max-width: 439px) 100vw, 439px\" \/><\/figure>\n\n\n\n<p>this part of the code lets you choose or make up a word for the game <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"234\" height=\"93\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-6.png\" alt=\"\" class=\"wp-image-53\"\/><\/figure>\n\n\n\n<p>the game lets you have 4 attempts and if you get them all wrong you lose and have to restart over<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"251\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-7.png\" alt=\"\" class=\"wp-image-54\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-7.png 593w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-7-300x127.png 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/figure>\n\n\n\n<p>this part of the code tells you if you got died or won \/ wrong or right<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"375\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-8.png\" alt=\"\" class=\"wp-image-55\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-8.png 668w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-8-300x168.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"429\" height=\"380\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-9.png\" alt=\"\" class=\"wp-image-56\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-9.png 429w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-9-300x266.png 300w\" sizes=\"auto, (max-width: 429px) 100vw, 429px\" \/><\/figure>\n\n\n\n<p>this part of the code lets you make the attempts more or less<\/p>\n\n\n\n<p>you can make it low attempts to make the difficulty harder <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"226\" height=\"64\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-10.png\" alt=\"\" class=\"wp-image-57\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"706\" src=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-11-1024x706.png\" alt=\"\" class=\"wp-image-58\" srcset=\"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-11-1024x706.png 1024w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-11-300x207.png 300w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-11-768x529.png 768w, https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-content\/uploads\/2025\/10\/image-11.png 1381w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>today for free friday I followed a video and made a hang man game this part of the code lets you choose or make up a word for the game the game lets you have 4 attempts and if you get them all wrong you lose and have to restart over this part of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":59,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/posts\/51\/revisions\/60"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/media\/59"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_bhujel\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}