{"id":1025,"date":"2018-08-23T11:16:10","date_gmt":"2018-08-23T11:16:10","guid":{"rendered":"http:\/\/learnlearn.uk\/python\/?p=1025"},"modified":"2018-09-05T08:37:47","modified_gmt":"2018-09-05T08:37:47","slug":"rock-paper-scissors-game-easy-python-tutorial","status":"publish","type":"post","link":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/","title":{"rendered":"Rock Paper Scissors Game Easy Python Tutorial"},"content":{"rendered":"\n<div class=\"arconix-tabs-horizontal\"><ul class=\"arconix-tabs\"><li data-arconix-icon=\" \" data-arconix-color=\" \" class=\"arconix-tab tab-Introduction\"><a class=\"\" href=\"#tab-Introduction\">Introduction<\/a><\/li>\n<li data-arconix-icon=\" \" data-arconix-color=\" \" class=\"arconix-tab tab-VideoTutorial\"><a class=\"\" href=\"#tab-VideoTutorial\">Video Tutorial<\/a><\/li>\n<li data-arconix-icon=\" \" data-arconix-color=\" \" class=\"arconix-tab tab-FullCode\"><a class=\"\" href=\"#tab-FullCode\">Full Code<\/a><\/li><\/ul>\n<div class=\"arconix-panes\"><div class=\"arconix-pane pane-Introduction\">\n<div class=\"arconix-column-two-thirds\">\n<h3>Rock, Paper, Scissors Game Tutorial<\/h3>\n<p>The aim of this walk through is to show you how you can create a simple rock,paper,scissors game. In this game the user and computer each pick from either rock, paper or scissors and depending on their choice either the computer or the user wins (or its a draw!).<\/p>\n<ul>\n<li>Rock beats scissors<\/li>\n<li>Scissors beats paper<\/li>\n<li>Paper beats rock<\/li>\n<li>The same choice is a draw.<\/li>\n<\/ul>\n<p>The game will be played over 5 rounds and at the winner will be the one who has won the most rounds.<\/p>\n<\/div>\n<div class=\"arconix-column-one-third\">\n<div id=\"attachment_715\" style=\"width: 310px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-715\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-715\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/10\/rock-paper-scissors-156171_640-300x296.png\" alt=\"Python rock paper scissors game\" width=\"300\" height=\"296\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/10\/rock-paper-scissors-156171_640-300x296.png 300w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/10\/rock-paper-scissors-156171_640-600x592.png 600w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/10\/rock-paper-scissors-156171_640.png 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><p id=\"caption-attachment-715\" class=\"wp-caption-text\">Rock,Scissor Paper<\/p><\/div>\n<\/div>\n<\/div>\n<div class=\"arconix-pane pane-VideoTutorial\">\n<h3>Video Tutorial<\/h3>\n<p><a href=\"https:\/\/drive.google.com\/open?id=16cTf84wT5yyG4TcL4TKJiW_XYOXY12-V\">Can&#8217;t access Youtube? Click here for the Google Drive Version<\/a><\/p>\n<p>Here is the full video tutorial for you to follow. Make sure you watch and listen to the video, don&#8217;t just copy the code, as I explain as I go along why I have chosen to use each different technique.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/9Kdn9uIYhKw\" width=\"860\" height=\"550\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Can&#8217;t access YouTube? Click here for the Google Drive Version<\/p>\n<\/div>\n<div class=\"arconix-pane pane-FullCode\">\n<h3>Full Code Listing<\/h3>\n<p>Here is the full code listing for if you need help with debugging. Remember to watch and listen to the video, don&#8217;t just copy the code, you will learn far more!<\/p>\n<p><script src=\"https:\/\/gist.github.com\/richardbwest\/772c49c5df6ef29efc6fc6b36da59f7e.js\"><\/script><\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Rock Paper Scissors Game Easy Python Tutorial - Python<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rock Paper Scissors Game Easy Python Tutorial - Python\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Python\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-23T11:16:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-05T08:37:47+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/10\/rock-paper-scissors-156171_640-300x296.png\" \/>\n<meta name=\"author\" content=\"learnlearnadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"learnlearnadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/\"},\"author\":{\"name\":\"learnlearnadmin\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02\"},\"headline\":\"Rock Paper Scissors Game Easy Python Tutorial\",\"datePublished\":\"2018-08-23T11:16:10+00:00\",\"dateModified\":\"2018-09-05T08:37:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/\"},\"wordCount\":230,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#organization\"},\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/\",\"name\":\"Rock Paper Scissors Game Easy Python Tutorial - Python\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\"},\"datePublished\":\"2018-08-23T11:16:10+00:00\",\"dateModified\":\"2018-09-05T08:37:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Python Unit Home\",\"item\":\"https:\/\/learnlearn.uk\/python\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rock Paper Scissors Game Easy Python Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\",\"url\":\"https:\/\/learnlearn.uk\/python\/\",\"name\":\"Python\",\"description\":\"Programming\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/python\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#organization\",\"name\":\"Python\",\"url\":\"https:\/\/learnlearn.uk\/python\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"Python\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02\",\"name\":\"learnlearnadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g\",\"caption\":\"learnlearnadmin\"},\"url\":\"https:\/\/learnlearn.uk\/python\/author\/learnlearnadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Rock Paper Scissors Game Easy Python Tutorial - Python","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:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/","og_locale":"en_GB","og_type":"article","og_title":"Rock Paper Scissors Game Easy Python Tutorial - Python","og_url":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/","og_site_name":"Python","article_published_time":"2018-08-23T11:16:10+00:00","article_modified_time":"2018-09-05T08:37:47+00:00","og_image":[{"url":"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/10\/rock-paper-scissors-156171_640-300x296.png"}],"author":"learnlearnadmin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"learnlearnadmin","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/#article","isPartOf":{"@id":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/"},"author":{"name":"learnlearnadmin","@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02"},"headline":"Rock Paper Scissors Game Easy Python Tutorial","datePublished":"2018-08-23T11:16:10+00:00","dateModified":"2018-09-05T08:37:47+00:00","mainEntityOfPage":{"@id":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/"},"wordCount":230,"commentCount":0,"publisher":{"@id":"https:\/\/learnlearn.uk\/python\/#organization"},"articleSection":["Uncategorized"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/","url":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/","name":"Rock Paper Scissors Game Easy Python Tutorial - Python","isPartOf":{"@id":"https:\/\/learnlearn.uk\/python\/#website"},"datePublished":"2018-08-23T11:16:10+00:00","dateModified":"2018-09-05T08:37:47+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/python\/2018\/08\/23\/rock-paper-scissors-game-easy-python-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Python Unit Home","item":"https:\/\/learnlearn.uk\/python\/"},{"@type":"ListItem","position":2,"name":"Rock Paper Scissors Game Easy Python Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/python\/#website","url":"https:\/\/learnlearn.uk\/python\/","name":"Python","description":"Programming","publisher":{"@id":"https:\/\/learnlearn.uk\/python\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/python\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/python\/#organization","name":"Python","url":"https:\/\/learnlearn.uk\/python\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"Python"},"image":{"@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02","name":"learnlearnadmin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g","caption":"learnlearnadmin"},"url":"https:\/\/learnlearn.uk\/python\/author\/learnlearnadmin\/"}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/python\/author\/learnlearnadmin\/"},"rttpg_comment":14,"rttpg_category":"<a href=\"https:\/\/learnlearn.uk\/python\/category\/uncategorized\/\" rel=\"category tag\">Uncategorized<\/a>","rttpg_excerpt":null,"_links":{"self":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/posts\/1025"}],"collection":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/comments?post=1025"}],"version-history":[{"count":4,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/posts\/1025\/revisions"}],"predecessor-version":[{"id":1040,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/posts\/1025\/revisions\/1040"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/media?parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/categories?post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/tags?post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}