{"id":210,"date":"2026-03-06T20:37:46","date_gmt":"2026-03-06T20:37:46","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/g_cruz\/?p=210"},"modified":"2026-03-06T20:37:46","modified_gmt":"2026-03-06T20:37:46","slug":"more-roulette","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/g_cruz\/2026\/03\/06\/more-roulette\/","title":{"rendered":"More Roulette"},"content":{"rendered":"\n<p>The first additions I added was an &#8220;if-elif&#8221; to check what kind of bet the player you want to make. If they pick a singular, then they pick ONE spot on the table to bet on and if they pick a group, they will select from a preset group selection. If they type an invalid bet group, it won&#8217;t continue until they do with a &#8220;while&#8221; loop<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    if \"g\" in betType.lower():\n        betType = \"group\"\n    else: \n        betType = \"single\"\n\n    if betType.lower() == \"single\":\n        betList.append(str(input(\"Between 000, 00, 0, and up to 36, what do you bet on? \")))\n    \n    elif betType.lower() == \"group\":\n        group = str(input(\"What betting group are you thinking? (straight, red, black, odd, even, 1st, 2nd, or 3rd dozen): \"))\n\n        if group in table:\n            betList = table&#91;group]\n        \n        else:\n            while group not in table:\n                if group not in table:\n                    group = str(input(\"That is not a group of bets you can make: \"))<\/code><\/pre>\n\n\n\n<p>I also changed how the rewards work so that the more slots you bet on at a time, the lower your rewards are, by subtracting the original multiplier by the length of the bet selection.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    if result in betList:\n        yourMoney += betAmount * 35 - len(betList)\n        print(\"You win!\")<\/code><\/pre>\n\n\n\n<p>I am currently working on a group of &#8220;setup&#8221; functions to customize some small things before the game starts, such as whether zero slots should be used:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#setup functions\ndef set_zeros():\n    if str(input(\"We using zeros on this wheel? (y\/n): \")).lower() == \"y\":\n        return \"yes\"\n    else:\n        return \"no\"\n    \ndef set_zero_amount(zeros):\n    if zeros.lower() == \"yes\":\n        #make a chain to ask how many zeros should be added to the wheel and table (if applicable)\n\n#setup\nzeros = set_zeros()\nnum_zeros = set_zero_amount(zeros)<\/code><\/pre>\n\n\n\n<p>The &#8220;zeros&#8221; variable will soon be used later with some logic to ensure that an error doesn&#8217;t happen when someone tries to bet on a zero when none are in play or when they pick a zero not in play.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first additions I added was an &#8220;if-elif&#8221; to check what kind of bet the player you want to make. If they pick a singular, then they pick ONE spot on the table to bet on and if they pick a group, they will select from a preset group selection. If they type an invalid [&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-210","post","type-post","status-publish","format-standard","hentry","category-progress"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts\/210\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}