{"id":74,"date":"2025-12-12T15:07:32","date_gmt":"2025-12-12T15:07:32","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=74"},"modified":"2025-12-12T15:07:32","modified_gmt":"2025-12-12T15:07:32","slug":"hp-based-game-stage-1-day-3","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2025\/12\/12\/hp-based-game-stage-1-day-3\/","title":{"rendered":"HP BASED GAME STAGE 1 DAY 3"},"content":{"rendered":"\n<p>im not really sure what to put for this post but i coded some of the schools history today <\/p>\n\n\n\n<p>for exsample:<\/p>\n\n\n\n<p>house cup wins <\/p>\n\n\n\n<p>quidditch cup wins <\/p>\n\n\n\n<p>quidditch finals history<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> class house_cup_wins:\n        house_wins = {\n                              \"phoehix\": 7, \n                              \"thunderbird\": 4,\n                              \"dragon\": 6,\n                              \"wolf\": 6,\n                              \"hippogriff\": 3,\n                              \"sphinx\": 0\n                        }\n                        \n    class quidditch_titles:\n        titles = {\n                              \"phoehix\": 5,\n                              \"thunderbird\": 5,\n                              \"dragon\": 4,\n                              \"wolf\": 3,\n                              \"hippogriff\": 0,\n                              \"sphinx\": 0\n                        }\n        \n    class quidditch_finals_history:\n            finals_history= {\n                \"phoehix\":&#91;\"2016 champions\",\"2020: Champions\", \"2021: Runners-up\", \"2022: Champions\"],\n                \"thunderbird\":&#91;\"2019: Champions\", \"2020: Semi-finalists\", \"2021: Champions\"],\n                \"dragon\":&#91;\"2018: Runners-up\", \"2019: Semi-finalists\", \"2020: Champions\"],\n                \"wolf\":&#91;\"2017: Champions\", \"2018: Runners-up\", \"2019: Semi-finalists\"],\n                \"hippogriff\":&#91;\"No appearances in finals\"],\n                \"sphinx\":&#91;\"No appearances in finals\"]\n            }<\/code><\/pre>\n\n\n\n<p>i also began coding the trasnport<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import random\nfrom transport import transport_options\nclass TransportQuiz:\n    def __init__(self):\n        self.transport = None\n\n    def ask_question(self):\n        print(\"Choose your preferred mode of transport:\")\n        question = (\"A: Flying B: Swimming C: Driving D: Biking E: Walking F: Teleporting\")\n        answer = input(\"Enter your answer (A-F): \")\n        print(\"You have answered the transport question\")\n        print(\"Selecting your transport option...\")\n        self.transport = random.choice(transport_options)\n\n    def get_transport(self):\n        return self.transport\n\n    def display_transport(self):\n        return f\"The selected mode of transport is {self.transport}\"\ntransport_quiz = TransportQuiz()\ntransport_quiz.ask_question()\nprint(transport_quiz.display_transport())\nclass transport_sort:\n    def transport_choice(self, name):\n         for option in transport_options:\n             if option == transport_options&#91;0]:\n                 return f\"{name}, you prefer Flying\"\n             elif option == transport_options&#91;1]:\n                 return f\"{name}, you prefer Swimming\"\n             elif option == transport_options&#91;2]:\n                 return f\"{name}, you prefer Driving\"\n             elif option == transport_options&#91;3]:\n                 return f\"{name}, you prefer Biking\"\n             elif option == transport_options&#91;4]:\n                 return f\"{name}, you prefer Walking\"\n             elif option == transport_options&#91;5]:\n                 return f\"{name}, you prefer Teleporting\"\n    selected_transport = random.choice(transport_options)\n    def get_selected_transport(self):\n        return self.selected_transport\n    def display_selected_transport(self):\n        return f\"The selected transport option is {self.selected_transport}\"\ntransport_sort_instance = transport_sort()\nprint(transport_sort_instance.display_selected_transport())\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"256\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/12\/image-1.png\" alt=\"\" class=\"wp-image-75\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/12\/image-1.png 945w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/12\/image-1-300x81.png 300w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/12\/image-1-768x208.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<p>the histroy isnt done ill get it done next week<\/p>\n","protected":false},"excerpt":{"rendered":"<p>im not really sure what to put for this post but i coded some of the schools history today for exsample: house cup wins quidditch cup wins quidditch finals history i also began coding the trasnport the histroy isnt done ill get it done next week<\/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-74","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/74\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}