{"id":132,"date":"2026-03-06T14:58:43","date_gmt":"2026-03-06T14:58:43","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/d_harkless\/?p=132"},"modified":"2026-03-06T14:58:43","modified_gmt":"2026-03-06T14:58:43","slug":"free-friday-3-6-26","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/d_harkless\/2026\/03\/06\/free-friday-3-6-26\/","title":{"rendered":"Free Friday 3\/6\/26"},"content":{"rendered":"\n<p>Today in class, i made a rock paper scissors game. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"345\" height=\"88\" src=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-1.png\" alt=\"\" class=\"wp-image-134\" srcset=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-1.png 345w, https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-1-300x77.png 300w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"337\" height=\"85\" src=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-2.png\" alt=\"\" class=\"wp-image-135\" style=\"width:348px;height:auto\" srcset=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-2.png 337w, https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-2-300x76.png 300w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"379\" height=\"99\" src=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-3.png\" alt=\"\" class=\"wp-image-136\" style=\"aspect-ratio:3.8284806776071996;width:348px;height:auto\" srcset=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-3.png 379w, https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-3-300x78.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"219\" src=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image.png\" alt=\"\" class=\"wp-image-133\" style=\"aspect-ratio:2.2968457331235483;width:466px;height:auto\" srcset=\"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image.png 503w, https:\/\/theroyalscode.com\/students\/d_harkless\/wp-content\/uploads\/2026\/03\/image-300x131.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<p>This is the code that decides whether you lose, win, or if it&#8217;s a tie.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    while player not in options:\n        player = input(\"Enter a choice (rock, paper, scissors): \")<\/code><\/pre>\n\n\n\n<p>This is the code that asks the player to choose rock, paper, or scissors. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import random\n\noptions = (\"rock\", \"paper\", \"scissors\")\nrunning = True\n\nwhile running:\n\n    player = None\n    computer = random.choice(options)\n\n    while player not in options:\n        player = input(\"Enter a choice (rock, paper, scissors): \")\n\n    print(f\"Player: {player}\")\n    print(f\"Computer: {computer}\")\n\n    if player == computer:\n        print(\"It's a tie!\")\n    elif player == \"rock\" and computer == \"scissors\":\n        print(\"You win!\")\n    elif player == \"paper\" and computer == \"rock\":\n        print(\"You win!\")\n    elif player == \"scissors\" and computer == \"paper\":\n        print(\"You win!\")\n    else:\n        print(\"You lose!\")\n\n    if not input(\"Play again? (y\/n): \").lower() == \"y\":\n        running = False\n\nprint(\"Thanks for playing!\")<\/code><\/pre>\n\n\n\n<p>\u00a0 <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today in class, i made a rock paper scissors game. This is the code that decides whether you lose, win, or if it&#8217;s a tie. This is the code that asks the player to choose rock, paper, or scissors. \u00a0<\/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-132","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/posts\/132","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=132"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/posts\/132\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_harkless\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}