docs/_site/Code.html in PlayRockPaperScissorsGame-2.4.7 vs docs/_site/Code.html in PlayRockPaperScissorsGame-2.4.8
- old
+ new
@@ -5,13 +5,13 @@
<title>Master Code - Play Rock Paper Scissors Game</title>
<meta name="description" content="A Ruby Programmed Rock Paper Scissors Game"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#157878">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
- <link rel="stylesheet" href="/assets/css/style.css?v=b4a2ec6c0ba57edcdb9930b781228c6692cfb50a">
- <link rel="stylesheet" href="/assets/css/pace.css" />
- <script src="/assets/js/pace.min.js"></script>
+ <link rel="stylesheet" href="/assets/css/style.css?v=2fedb514d7e7f8f31eec03a5c942f49f98471ed1">
+ <link rel="stylesheet" href="assets/css/pace.css" />
+ <script src="assets/js/pace.min.js"></script>
</head>
<body>
<section class="page-header">
<h1 class="project-name">Play Rock Paper Scissors Game</h1>
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
@@ -51,11 +51,11 @@
=end</span>
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span> <span class="c1"># define master class</span>
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
- <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.7"</span> <span class="c1"># define version constant</span>
+ <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.8"</span> <span class="c1"># define version constant</span>
<span class="k">end</span>
<span class="c1"># intiate the colorize gem</span>
<span class="nb">require</span> <span class="s2">"colorized_string"</span>
<span class="no">ColorizedString</span><span class="p">.</span><span class="nf">colors</span> <span class="c1"># import colors; ex: red, green, blue</span>
@@ -161,10 +161,9 @@
<span class="k">return</span> <span class="ss">:TIE</span> <span class="k">if</span> <span class="o">!</span><span class="ss">:WIN</span> <span class="o">|</span> <span class="o">!</span><span class="ss">:LOSE</span> <span class="c1"># return a tie if not (!) win or if not lose</span>
<span class="k">end</span>
<span class="k">def</span> <span class="nf">final_outcome</span><span class="p">(</span><span class="n">pl</span><span class="p">,</span><span class="n">co</span><span class="p">)</span> <span class="c1"># define final outcome method</span>
<span class="k">return</span> <span class="ss">:WIN</span> <span class="k">if</span> <span class="n">pl</span> <span class="o">></span> <span class="n">co</span>
<span class="k">return</span> <span class="ss">:LOSE</span> <span class="k">if</span> <span class="n">pl</span> <span class="o"><</span> <span class="n">co</span>
- <span class="k">return</span> <span class="ss">:TIE</span> <span class="k">if</span> <span class="n">pl</span> <span class="o">=</span> <span class="n">co</span> <span class="c1"># this can never happen due to the code in the play method, but it is worth noting</span>
<span class="k">end</span>
<span class="k">end</span>
<span class="k">end</span>
<span class="nb">private_methods</span> <span class="ss">:PrivateMethods</span> <span class="c1"># make the PrivateMethods module private</span>