{"id":93,"date":"2025-01-10T16:36:37","date_gmt":"2025-01-10T16:36:37","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/k_rai\/?p=93"},"modified":"2025-12-03T16:23:16","modified_gmt":"2025-12-03T16:23:16","slug":"what-i-did-today-for-free-friday","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/k_rai\/2025\/01\/10\/what-i-did-today-for-free-friday\/","title":{"rendered":"What I did today for Free Friday"},"content":{"rendered":"\n<p class=\"has-maroon-color has-text-color has-link-color has-medium-font-size wp-elements-336dc1eaf2733dcd668688e03645efc9\"><strong>Today I did a mini project of making a roll dice game in Virtual Studio Code.  I learned about multiple rules that goes into making the game. With functions and codes such a minimum, maximum, and a bunch of while loops, ifs, and else. These are crucial for making the game work. What I made today is basically a roll dice game where there&#8217;s two to four players and each of them have a chance to roll a number between 1-6 to and each round, they add the number they get but if the player gets a number 1 their points get reset. The player with the most points wins the game. <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"935\" src=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2025\/01\/code-snippet-11.png\" alt=\"\" class=\"wp-image-95\" srcset=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2025\/01\/code-snippet-11.png 844w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2025\/01\/code-snippet-11-271x300.png 271w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2025\/01\/code-snippet-11-768x851.png 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"572\" height=\"247\" src=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2025\/01\/code-pic-12.png\" alt=\"\" class=\"wp-image-96\" srcset=\"https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2025\/01\/code-pic-12.png 572w, https:\/\/theroyalscode.com\/students\/k_rai\/wp-content\/uploads\/2025\/01\/code-pic-12-300x130.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/figure>\n\n\n\n<p class=\"has-maroon-color has-text-color has-link-color has-large-font-size wp-elements-0801ead2126ebd9aadb85af4ad30f9a7\"><strong>These are the code snippets that I&#8217;ve finished and that&#8217;s how the code goes.<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I did a mini project of making a roll dice game in Virtual Studio Code. I learned about multiple rules that goes into making the game. With functions and codes such a minimum, maximum, and a bunch of while loops, ifs, and else. These are crucial for making the game work. What I made [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":134,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-93","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-free-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":2,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":327,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/posts\/93\/revisions\/327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/media\/134"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/k_rai\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}