{"id":11412,"date":"2023-05-26T08:00:37","date_gmt":"2023-05-26T02:30:37","guid":{"rendered":"http:\/\/myprojectideas.com\/?p=11412"},"modified":"2025-10-10T11:50:12","modified_gmt":"2025-10-10T11:50:12","slug":"rock-paper-scissor-game-in-python","status":"publish","type":"post","link":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/","title":{"rendered":"Rock Paper Scissor Game in Python"},"content":{"rendered":"<h2><a id=\"post-11412-_heading=h.fz13x609zxn\"><\/a>Introduction<\/h2>\n<p>Let&#8217;s create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. The player will initially have the option to choose either Rock, Paper, or Scissors in this game. The winner is chosen according to the game&#8217;s rules after the computer randomly selects the last two alternatives.<\/p>\n<p>Rock-Paper-Scissors is a popular and straightforward game often used to settle minor disputes among children. Its appeal lies in its competitive nature, as children readily agree to play when a parent or caregiver suggests it.<\/p>\n<p>The game&#8217;s rules are straightforward: Rock beats Scissors, Scissors beats Paper, and Paper beats Rock. The winner is determined after the players make their choices, and the loser typically accepts the outcome.<\/p>\n<p>It serves as a quick and fair way to resolve disagreements. Interestingly, if a child refuses to participate in a Rock-Paper-Scissors game to settle a dispute, it may indicate that the issue at hand is more serious.<\/p>\n<h2><a id=\"post-11412-_heading=h.41o1fc64drpd\"><\/a>Objectives<\/h2>\n<p>1. This is a Python implementation of the classic Rock-Paper-Scissors game that brings back childhood memories.<\/p>\n<p>2. Choosing rock will beat scissors (&#8220;rock crushes scissors&#8221; or &#8220;breaks scissors&#8221; or sometimes &#8220;blunts scissors&#8221;), but it will lose to paper (&#8220;paper covers rock&#8221;).<\/p>\n<p>3. Selecting paper will lose to scissors (&#8220;scissors cuts paper&#8221;).<\/p>\n<p>4. The objective is to defeat the opponent by choosing a weapon that defeats their choice according to the following rules: Rock smashes (or breaks or blunts), scissors (rock wins), scissors cut paper (scissors win), and paper covers rock (paper wins).<\/p>\n<h2><a id=\"post-11412-_heading=h.xkaw06f9w8nu\"><\/a>Requirements<\/h2>\n<p>Here are the prerequisites to build rock paper scissor game in Python<\/p>\n<p>1. Basic Python Knowledge<\/p>\n<p>2. <a href=\"https:\/\/code.visualstudio.com\/\">VS Code<\/a> or Any Text Editor<\/p>\n<p>3. <em><strong>Python Environment:<\/strong><\/em> The code requires a Python environment to run. Ensure that Python is installed on the system and the code is executed using a Python interpreter.<\/p>\n<p>4. <em><strong>Importing the Random Module:<\/strong> <\/em>The code starts by importing the random module. Make sure to have the random module available in the Python environment<\/p>\n<h2><a id=\"post-11412-_heading=h.3hxxh0615ilg\"><\/a>Source Code<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\"># import random module\r\n\r\nimport random\r\n\r\n\r\n\r\n\r\n# Print multiline instruction\r\n\r\n# performstring concatenation of string\r\n\r\nprint(\"Winning Rules of the Rock paper scissor game as follows: \\n\"\r\n\r\n+ \"Rock vs paper-&gt;paper wins \\n\"\r\n\r\n+ \"Rock vs scissor-&gt;Rock wins \\n\"\r\n\r\n+ \"paper vs scissor-&gt;scissor wins \\n\")\r\n\r\n\r\n\r\n\r\nwhile True:\r\n\r\nprint(\"Enter choice \\n 1 for Rock, \\n 2 for paper, and \\n 3 for scissor \\n\")\r\n\r\n\r\n\r\n\r\n# take the input from user\r\n\r\nchoice = int(input(\"User turn: \"))\r\n\r\n\r\n\r\n\r\n# OR is the short-circuit operator\r\n\r\n# if any one of the condition is true\r\n\r\n# then it returns True value\r\n\r\n\r\n\r\n\r\n# looping until user enters invalid input\r\n\r\nwhile choice &gt; 3 or choice &lt; 1:\r\n\r\nchoice = int(input(\"enter valid input: \"))\r\n\r\n\r\n\r\n\r\n# initialise value of choice_name variable\r\n\r\n# corresponding to the choice value\r\n\r\nif choice == 1:\r\n\r\nchoice_name = 'Rock'\r\n\r\nelif choice == 2:\r\n\r\nchoice_name = 'paper'\r\n\r\nelse:\r\n\r\nchoice_name = 'scissor'\r\n\r\n\r\n\r\n\r\n# print user choice\r\n\r\nprint(\"user choice is: \" + choice_name)\r\n\r\nprint(\"\\nNow its computer turn.......\")\r\n\r\n\r\n\r\n\r\n# Computer chooses randomly any number\r\n\r\n# among 1 , 2 and 3. Using randint method\r\n\r\n# of random module\r\n\r\ncomp_choice = random.randint(1, 3)\r\n\r\n\r\n\r\n\r\n# looping until comp_choice value\r\n\r\n# is equal to the choice value\r\n\r\nwhile comp_choice == choice:\r\n\r\ncomp_choice = random.randint(1, 3)\r\n\r\n\r\n\r\n\r\n# initialize value of comp_choice_name\r\n\r\n# variable corresponding to the choice value\r\n\r\nif comp_choice == 1:\r\n\r\ncomp_choice_name = 'Rock'\r\n\r\nelif comp_choice == 2:\r\n\r\ncomp_choice_name = 'paper'\r\n\r\nelse:\r\n\r\ncomp_choice_name = 'scissor'\r\n\r\n\r\n\r\n\r\nprint(\"Computer choice is: \" + comp_choice_name)\r\n\r\n\r\n\r\n\r\nprint(choice_name + \" V\/s \" + comp_choice_name)\r\n\r\n# we need to check of a draw\r\n\r\nif choice == comp_choice:\r\n\r\nprint(\"Draw=&gt; \", end=\"\")\r\n\r\nresult = Draw\r\n\r\n\r\n\r\n\r\n# condition for winning\r\n\r\nif((choice == 1 and comp_choice == 2) or\r\n\r\n(choice == 2 and comp_choice == 1)):\r\n\r\nprint(\"paper wins =&gt; \", end=\"\")\r\n\r\nresult = \"paper\"\r\n\r\n\r\n\r\n\r\nelif((choice == 1 and comp_choice == 3) or\r\n\r\n(choice == 3 and comp_choice == 1)):\r\n\r\nprint(\"Rock wins =&gt;\", end=\"\")\r\n\r\nresult = \"Rock\"\r\n\r\nelse:\r\n\r\nprint(\"scissor wins =&gt;\", end=\"\")\r\n\r\nresult = \"scissor\"\r\n\r\n\r\n\r\n\r\n# Printing either user or computer wins or draw\r\n\r\nif result == Draw:\r\n\r\nprint(\"&lt;== Its a tie ==&gt;\")\r\n\r\nif result == choice_name:\r\n\r\nprint(\"&lt;== User wins ==&gt;\")\r\n\r\nelse:\r\n\r\nprint(\"&lt;== Computer wins ==&gt;\")\r\n\r\n\r\n\r\n\r\nprint(\"Do you want to play again? (Y\/N)\")\r\n\r\nans = input().lower\r\n\r\n\r\n\r\n\r\n# if user input n or N then the condition is True\r\n\r\nif ans == 'n':\r\n\r\nbreak\r\n\r\n\r\n\r\n\r\n# after coming out of the while loop\r\n\r\n# we print thanks for playing\r\n\r\nprint(\"\\nThanks for playing\")<\/pre>\n<h2>Output<\/h2>\n<p>In this output, we can see that computer wins by choosing Paper, and the user loses by choosing Rock.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-17550 size-full\" src=\"https:\/\/rudelabs.ai\/blogs\/wp-content\/uploads\/2023\/05\/word-image-11412-1-1.webp\" alt=\"Rock Paper Scissor Game in Python\" width=\"485\" height=\"417\" \/><\/p>\n<h2><a id=\"post-11412-_heading=h.9q3mfvuvazzi\"><\/a>Explanation of the Code<\/h2>\n<p>1. Initially, we have displayed the rules for the Rock Paper Scissor Game.<\/p>\n<p>2. In the first line of the code, we have displayed &#8220;Rock vs Paper -&gt; Paper Wins.&#8221; This is so that paper will win if a player chooses a rock and plays against an opponent who selects paper.<\/p>\n<p>3. We have followed the output &#8220;Rock vs scissor -&gt; Rock wins.&#8221; This shows that when played against scissors, rock prevails.<\/p>\n<p>4. And the last line we displayed, &#8220;paper vs scissors -&gt; scissors wins.&#8221; This proves that when playing scissors versus paper, paper prevails.<\/p>\n<p>5. We developed the programming in such a way that it will produce the line &#8220;Winning Rules of the Rock, Paper, Scissors Game as Follows: Rock vs Paper -&gt; Paper Wins, Rock vs Scissor -&gt; Rock Wins, Paper vs Scissor -&gt; Scissor Wins.&#8221;<\/p>\n<p>6. Then we displayed a message to start the game by asking the user to make a decision.<\/p>\n<p>7. Next, we determined if the input is 1, 2, or 3. We assigned the values &#8220;Rock&#8221; if choice == 1, &#8220;paper&#8221; if choice == 2, and &#8220;scissor&#8221; if choice == 3 to the variable choice_name if it doesn&#8217;t match any of these values.<\/p>\n<p>8. The user is prompted to input their computer turn in the next section of the programme.<\/p>\n<p>9. A number between 1 and 3 is chosen using a random number generator.<\/p>\n<p>10. Here, we ask the user to choose amongst the options of rock, paper, or scissors.<\/p>\n<p>11. After the user makes their selection, the next one of these alternatives at random will represent the computer&#8217;s turn.<\/p>\n<p>12. The comp_choice_name variable contains the value that was selected at random.<\/p>\n<p>13. Program keeps looping until comp_choice and choice are equal.<\/p>\n<p>14. Comp_choice is picked at random from the range of 1 to 3 during each loop iteration and saved in comp_choice_name.<\/p>\n<p>15. If the computer has selected rock as its turn, we check here for comp_choice equals choice or not.<\/p>\n<p>16. Then we displayed the outputs of both options, showing what happened (the human selected rock vs paper and the computer selected rock vs scissors).<\/p>\n<p>17. And displayed the result of the winner with its choice!<\/p>\n<p>18. After that, ask the user to continue the game with Yes\/No prompt.<\/p>\n<p>19. Here, if the user selects \u201cyes\u201d, the game continues with the above-following procedure. If \u201cno\u201d game ends. At last, we displayed the \u201cThanks for playing\u201d message.<\/p>\n<h2><a id=\"post-11412-_heading=h.i9151a7u536\"><\/a>Conclusion<\/h2>\n<p><a id=\"post-11412-_heading=h.gjdgxs\"><\/a> Hence, we have successfully built the Python application that allows us to play the rock, paper, scissor game in Python which is a classic and nostalgic game and sometimes acts as a deciding factor in performing any activity.<\/p>\n<p><a href=\"https:\/\/rudelabs.ai\/blogs\/category\/python\/\"><em><strong>More Python Projects&gt;&gt;&gt;<\/strong><\/em><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. <\/p>\n","protected":false},"author":1,"featured_media":11464,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[4,7,5],"tags":[22,3],"class_list":["post-11412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding-basics","category-coding-projects","category-python","tag-python","tag-python-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Rock Paper Scissor Game in Python - RUDE LABS<\/title>\n<meta name=\"description\" content=\"Let&#039;s create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. The player will Let&#039;s create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rock Paper Scissor Game in Python - RUDE LABS\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. The player will Let&#039;s create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"RUDE LABS\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-26T02:30:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-10T11:50:12+00:00\" \/>\n<meta name=\"author\" content=\"rudelabs.ai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rudelabs_in\" \/>\n<meta name=\"twitter:site\" content=\"@rudelabs_in\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rudelabs.ai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/\"},\"author\":{\"name\":\"rudelabs.ai\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#\/schema\/person\/560bad88bae03cae99a326a46af0c894\"},\"headline\":\"Rock Paper Scissor Game in Python\",\"datePublished\":\"2023-05-26T02:30:37+00:00\",\"dateModified\":\"2025-10-10T11:50:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/\"},\"wordCount\":789,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#organization\"},\"image\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage\"},\"thumbnailUrl\":\"\",\"keywords\":[\"Python\",\"python programming\"],\"articleSection\":[\"Coding Basics\",\"Coding Projects\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/\",\"url\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/\",\"name\":\"Rock Paper Scissor Game in Python - RUDE LABS\",\"isPartOf\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2023-05-26T02:30:37+00:00\",\"dateModified\":\"2025-10-10T11:50:12+00:00\",\"description\":\"Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. The player will Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame.\",\"breadcrumb\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/rudelabs.ai\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rock Paper Scissor Game in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#website\",\"url\":\"https:\/\/rudelabs.ai\/blogs\/\",\"name\":\"RUDE LABS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/rudelabs.ai\/blogs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#organization\",\"name\":\"RUDE LABS\",\"url\":\"https:\/\/rudelabs.ai\/blogs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/rudelabs.ai\/blogs\/wp-content\/uploads\/2025\/09\/RUDE-LABS.webp\",\"contentUrl\":\"https:\/\/rudelabs.ai\/blogs\/wp-content\/uploads\/2025\/09\/RUDE-LABS.webp\",\"width\":2459,\"height\":414,\"caption\":\"RUDE LABS\"},\"image\":{\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/rudelabs_in\",\"https:\/\/www.linkedin.com\/company\/ru-delabs\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#\/schema\/person\/560bad88bae03cae99a326a46af0c894\",\"name\":\"rudelabs.ai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rudelabs.ai\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4d9f672e72f97294dfb6fac3d78e9f0bb5421a701cd2141cf2a2e540b4d67191?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4d9f672e72f97294dfb6fac3d78e9f0bb5421a701cd2141cf2a2e540b4d67191?s=96&d=mm&r=g\",\"caption\":\"rudelabs.ai\"},\"sameAs\":[\"https:\/\/rudelabs.ai\/blogs\"],\"url\":\"https:\/\/rudelabs.ai\/blogs\/author\/rudelabs-ai\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Rock Paper Scissor Game in Python - RUDE LABS","description":"Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. The player will Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/","og_locale":"en_US","og_type":"article","og_title":"Rock Paper Scissor Game in Python - RUDE LABS","og_description":"Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. The player will Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame.","og_url":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/","og_site_name":"RUDE LABS","article_published_time":"2023-05-26T02:30:37+00:00","article_modified_time":"2025-10-10T11:50:12+00:00","author":"rudelabs.ai","twitter_card":"summary_large_image","twitter_creator":"@rudelabs_in","twitter_site":"@rudelabs_in","twitter_misc":{"Written by":"rudelabs.ai","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#article","isPartOf":{"@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/"},"author":{"name":"rudelabs.ai","@id":"https:\/\/rudelabs.ai\/blogs\/#\/schema\/person\/560bad88bae03cae99a326a46af0c894"},"headline":"Rock Paper Scissor Game in Python","datePublished":"2023-05-26T02:30:37+00:00","dateModified":"2025-10-10T11:50:12+00:00","mainEntityOfPage":{"@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/"},"wordCount":789,"commentCount":0,"publisher":{"@id":"https:\/\/rudelabs.ai\/blogs\/#organization"},"image":{"@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage"},"thumbnailUrl":"","keywords":["Python","python programming"],"articleSection":["Coding Basics","Coding Projects","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/","url":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/","name":"Rock Paper Scissor Game in Python - RUDE LABS","isPartOf":{"@id":"https:\/\/rudelabs.ai\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage"},"image":{"@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage"},"thumbnailUrl":"","datePublished":"2023-05-26T02:30:37+00:00","dateModified":"2025-10-10T11:50:12+00:00","description":"Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame. The player will Let's create a simple Rock Paper Scissor game in Python without using third-party game libraries like PyGame.","breadcrumb":{"@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/rudelabs.ai\/blogs\/rock-paper-scissor-game-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rudelabs.ai\/blogs\/"},{"@type":"ListItem","position":2,"name":"Rock Paper Scissor Game in Python"}]},{"@type":"WebSite","@id":"https:\/\/rudelabs.ai\/blogs\/#website","url":"https:\/\/rudelabs.ai\/blogs\/","name":"RUDE LABS","description":"","publisher":{"@id":"https:\/\/rudelabs.ai\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rudelabs.ai\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/rudelabs.ai\/blogs\/#organization","name":"RUDE LABS","url":"https:\/\/rudelabs.ai\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rudelabs.ai\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/rudelabs.ai\/blogs\/wp-content\/uploads\/2025\/09\/RUDE-LABS.webp","contentUrl":"https:\/\/rudelabs.ai\/blogs\/wp-content\/uploads\/2025\/09\/RUDE-LABS.webp","width":2459,"height":414,"caption":"RUDE LABS"},"image":{"@id":"https:\/\/rudelabs.ai\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/rudelabs_in","https:\/\/www.linkedin.com\/company\/ru-delabs\/"]},{"@type":"Person","@id":"https:\/\/rudelabs.ai\/blogs\/#\/schema\/person\/560bad88bae03cae99a326a46af0c894","name":"rudelabs.ai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rudelabs.ai\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4d9f672e72f97294dfb6fac3d78e9f0bb5421a701cd2141cf2a2e540b4d67191?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d9f672e72f97294dfb6fac3d78e9f0bb5421a701cd2141cf2a2e540b4d67191?s=96&d=mm&r=g","caption":"rudelabs.ai"},"sameAs":["https:\/\/rudelabs.ai\/blogs"],"url":"https:\/\/rudelabs.ai\/blogs\/author\/rudelabs-ai\/"}]}},"_links":{"self":[{"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/posts\/11412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/comments?post=11412"}],"version-history":[{"count":3,"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/posts\/11412\/revisions"}],"predecessor-version":[{"id":17642,"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/posts\/11412\/revisions\/17642"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/media?parent=11412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/categories?post=11412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rudelabs.ai\/blogs\/wp-json\/wp\/v2\/tags?post=11412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}