{"id":213,"date":"2026-08-28T19:33:14","date_gmt":"2026-08-28T19:33:14","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_carpenter\/?p=213"},"modified":"2026-08-28T19:33:14","modified_gmt":"2026-08-28T19:33:14","slug":"free-friday-8-28-2026","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_carpenter\/2026\/08\/28\/free-friday-8-28-2026\/","title":{"rendered":"Free Friday 8\/28\/2026"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Today and throughout this week I started learning C++. Today specifically I worked on making a &#8220;game corner&#8221; as I have dubbed it<\/strong>. <strong>I added Roulette to the corner and will ad hangman when I finally figure out C++ Arrays.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Free_Friday_8_28_26.cpp : This file contains the 'main' function. Program execution begins and ends there.\n\/\/\n\n#include &lt;iostream>\n#include &lt;thread>\n#include &lt;chrono>\n#include &lt;list>\nusing namespace std;\n\nint roulette() {\n\tcout &lt;&lt; \"\\nRoulette!\";\n\n\tint iRandom, iBet;\n\n\tsrand(time(NULL));\n\n\tiRandom = rand() % 37;\n\tstd::cout &lt;&lt; \"\\nPLACE YOUR BETS DUMBFUCK!\\n\";\n\tif (!(cin >> iBet)) {\n\t\tstd::cout &lt;&lt; \"NOT A VALID BET! SEND TO SIBERIA!!!!\";\n\t\tcin.clear();\n\t\tcin.ignore();\n\t\treturn 0;\n\t}\n\n\n\tif (iBet >= 0 and iBet &lt;= 37) {\n\t\tif (iBet != iRandom) {\n\t\t\tstd::cout &lt;&lt; \"YOU LOSE! SEND TO BRAZIIIIL!\";\n\t\t}\n\t\telse if (iBet == iRandom) {\n\t\t\tstd::cout &lt;&lt; \"YOU WIN! NO SEND TO BRAZIIIIL! SEND TO GUADELAJARA INSTEAD!!!!\";\n\t\t}\n\t}\n\telse {\n\t\tstd::cout &lt;&lt; \"NOT A VALID BET! SEND TO SIBERIA!!!!\";\n\t}\n}\n\nint hangman() {\n\tcout &lt;&lt; \"\\nHangman!\";\n\n\tint randindex;\n\tlist&lt;string> words = { \"python\", \"developer\", \"hangman\", \"challenge\", \"keyboard\", \"function\", \"variable\", \"syntax\", \"iteration\", \"recursion\", \"algorithm\", \"exception\", \"package\", \"library\", \"object\",\"inheritance\", \"polymorphism\", \"encapsulation\", \"debugging\", \"compilation\"};\n\tsrand(time(NULL));\n\n\n}\n\nint main()\n{\n    int gamechoice;\n    cout &lt;&lt; \"Haii! :3\\n\";\n    \/\/wait_for_x_seconds\n    this_thread::sleep_for(std::chrono::milliseconds(1000));\n    cout &lt;&lt; \"Welcome to S's game corner\\nWhat game would you like to play?\\n1) Roulette\\n2)Hangman\" &lt;&lt; \"\\n\";\n\n    if (!(cin >> gamechoice)) {\n        cout &lt;&lt; \"\\nOnly Numbers Please.\";\n    }\n\n\tif (gamechoice == 1) {\n\t\troulette();\n\t}\n\telse if (gamechoice == 2) {\n\t\thangman();\n\t}\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here is the current code for the game corner. I will finish the code for hangman when I do finally learn arrays.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today and throughout this week I started learning C++. Today specifically I worked on making a &#8220;game corner&#8221; as I have dubbed it. I added Roulette to the corner and will ad hangman when I finally figure out C++ Arrays. Here is the current code for the game corner. I will finish the code for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-friday"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":214,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/213\/revisions\/214"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}