docs/_site/Code.html in PlayRockPaperScissorsGame-2.4.1 vs docs/_site/Code.html in PlayRockPaperScissorsGame-2.4.2
- old
+ new
@@ -5,19 +5,19 @@
<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=8ade7247dbbaa777a46e6b2b762a86575087bb4a">
+ <link rel="stylesheet" href="/assets/css/style.css?v=008b8e183e063f2ccf825af250fff5c3b2887057">
</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>
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
- <a href="" class="btn">Report a Bug</a>
+ <a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
<a href="http://github.com/bag3318/RockPaperScissors/tarball/gh-pages" class="btn">Download .tar.gz</a>
@@ -50,17 +50,17 @@
<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.1"</span> <span class="c1"># define version constant</span>
+ <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.2"</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"># colors; ex: red, green, blue</span>
- <span class="no">ColorizedString</span><span class="p">.</span><span class="nf">modes</span> <span class="c1"># modes; ex: bold, italic, underline</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>
+ <span class="no">ColorizedString</span><span class="p">.</span><span class="nf">modes</span> <span class="c1"># import modes; ex: bold, italic, underline</span>
<span class="k">module</span> <span class="nn">Constants</span>
<span class="no">NTRY_TO_SYM</span> <span class="o">=</span> <span class="p">{</span> <span class="c1"># define constants from an entry to a symbol class</span>
<span class="s1">'p'</span> <span class="o">=></span> <span class="ss">:PAPER</span><span class="p">,</span>
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span><span class="p">,</span>
@@ -72,10 +72,10 @@
<span class="c1"># format: player choice, computer choice</span>
<span class="p">[</span><span class="ss">:SCISSORS</span><span class="p">,</span> <span class="ss">:PAPER</span><span class="p">],</span>
<span class="p">[</span><span class="ss">:PAPER</span> <span class="p">,</span> <span class="ss">:ROCK</span><span class="p">],</span>
<span class="p">[</span><span class="ss">:ROCK</span> <span class="p">,</span> <span class="ss">:SCISSORS</span><span class="p">]</span>
<span class="p">]</span>
- <span class="no">LOSERS</span> <span class="o">=</span> <span class="no">WINNERS</span><span class="p">.</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">wp</span><span class="p">,</span><span class="n">lp</span><span class="o">|</span> <span class="p">[</span><span class="n">lp</span><span class="p">,</span><span class="n">wp</span><span class="p">]</span> <span class="p">}</span> <span class="c1"># this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player</span>
+ <span class="no">LOSERS</span> <span class="o">=</span> <span class="no">WINNERS</span><span class="p">.</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">pc</span><span class="p">,</span><span class="n">cc</span><span class="o">|</span> <span class="p">[</span><span class="n">cc</span><span class="p">,</span><span class="n">pc</span><span class="p">]</span> <span class="p">}</span> <span class="c1"># this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player</span>
<span class="no">INIT_STRINGS</span> <span class="o">=</span> <span class="p">[</span>
<span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"You are about to enter a rock-paper-scissors best of 3 match."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:green</span><span class="p">),</span>
<span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"Press the return/enter key to continue..."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:green</span><span class="p">),</span>
<span class="s2">""</span>
<span class="p">]</span>