rpsg 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/rpsg +1 -2
- data/html/RockPaperScissorsGame.html +5 -3
- data/html/created.rid +3 -5
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js.gz +0 -0
- data/lib/Main.rb +1 -0
- data/lib/rpsg/version.rb +1 -1
- data/rpsg.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d01fe003e7cef55d3f947aca68275ba69ddc01ec
|
4
|
+
data.tar.gz: 925a7ef416990b2a4e52dbfb7a0b3ecc9fcf31b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9597e79b36fafadcb0558ea7ce3dc773cbbb8b61d791192d4288bc607adca9ba02d2d01c4ec9b0e80ae0820c2e608fa6e0a46b41a89b204cfa58d16dfe5d3149
|
7
|
+
data.tar.gz: 4b147de32200e27bfd1613359eeb12111ccc4ebe9a5e01df5be13c34d20dda18a3cabbc7492c1926892ea3ee316db822c51295426a8417d038f312cff71d1aa6
|
data/Rakefile
CHANGED
data/bin/rpsg
CHANGED
@@ -90,6 +90,8 @@
|
|
90
90
|
|
91
91
|
<section class="description">
|
92
92
|
|
93
|
+
<p>create master class</p>
|
94
|
+
|
93
95
|
</section>
|
94
96
|
|
95
97
|
|
@@ -131,7 +133,7 @@ scissors</p>
|
|
131
133
|
|
132
134
|
|
133
135
|
<div class="method-source-code" id="continue-source">
|
134
|
-
<pre><span class="ruby-comment"># File lib/Main.rb, line
|
136
|
+
<pre><span class="ruby-comment"># File lib/Main.rb, line 12</span>
|
135
137
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">continue</span>(<span class="ruby-identifier">str1</span>,<span class="ruby-identifier">str2</span>,<span class="ruby-identifier">str3</span>)
|
136
138
|
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">str1</span>
|
137
139
|
<span class="ruby-identifier">print</span> <span class="ruby-identifier">str2</span>
|
@@ -167,7 +169,7 @@ scissors</p>
|
|
167
169
|
|
168
170
|
|
169
171
|
<div class="method-source-code" id="new-source">
|
170
|
-
<pre><span class="ruby-comment"># File lib/Main.rb, line
|
172
|
+
<pre><span class="ruby-comment"># File lib/Main.rb, line 24</span>
|
171
173
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
172
174
|
<span class="ruby-comment"># set all equal to zero</span>
|
173
175
|
<span class="ruby-ivar">@player_score</span> = <span class="ruby-ivar">@computer_score</span> = <span class="ruby-ivar">@ties</span> = <span class="ruby-value">0</span>
|
@@ -210,7 +212,7 @@ scissors</p>
|
|
210
212
|
|
211
213
|
|
212
214
|
<div class="method-source-code" id="play-source">
|
213
|
-
<pre><span class="ruby-comment"># File lib/Main.rb, line
|
215
|
+
<pre><span class="ruby-comment"># File lib/Main.rb, line 30</span>
|
214
216
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">play</span>(<span class="ruby-identifier">winning_score</span>)
|
215
217
|
<span class="ruby-comment"># make while loop</span>
|
216
218
|
<span class="ruby-keyword">while</span> <span class="ruby-ivar">@player_score</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">winning_score</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@computer_score</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">winning_score</span>
|
data/html/created.rid
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
Thu, 12 Oct 2017 15:
|
1
|
+
Thu, 12 Oct 2017 15:09:33 -0700
|
2
2
|
README.md Thu, 12 Oct 2017 12:13:30 -0700
|
3
3
|
lib/Constants.rb Thu, 12 Oct 2017 14:19:30 -0700
|
4
|
-
lib/Main.rb Thu, 12 Oct 2017
|
4
|
+
lib/Main.rb Thu, 12 Oct 2017 15:08:54 -0700
|
5
5
|
lib/PrivateMethods.rb Thu, 12 Oct 2017 13:53:33 -0700
|
6
|
-
lib/rpsg/version.rb Thu, 12 Oct 2017
|
7
|
-
bin/rpsg Thu, 12 Oct 2017 14:57:41 -0700
|
8
|
-
test/rpsg.rb Thu, 12 Oct 2017 14:13:08 -0700
|
6
|
+
lib/rpsg/version.rb Thu, 12 Oct 2017 15:04:34 -0700
|
data/html/js/navigation.js.gz
CHANGED
Binary file
|
data/html/js/search_index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var search_data = {"index":{"searchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","continue()","final_outcome()","new()","play()","player_choice()","player_outcome()","readme"],"longSearchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","rockpaperscissorsgame::continue()","privatemethods::final_outcome()","rockpaperscissorsgame::new()","rockpaperscissorsgame#play()","privatemethods::player_choice()","privatemethods::player_outcome()",""],"info":[["Constants","","Constants.html","","<p>create module that holds all contents for this script\n"],["PrivateMethods","","PrivateMethods.html","","<p>add module for private methods for the rpsg calculations\n"],["RPSG","","RPSG.html","","<p>specify the version for the rubygem\n"],["RockPaperScissorsGame","","RockPaperScissorsGame.html","",""],["continue","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-continue","(str1,str2,str3)","<p>add continue method for asking the user if they want to play rock paper\nscissors\n"],["final_outcome","PrivateMethods","PrivateMethods.html#method-c-final_outcome","(pl,co)","<p>define final outcome that gives the result of who one the whole match\n"],["new","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-new","()","<p>initialize variables\n"],["play","RockPaperScissorsGame","RockPaperScissorsGame.html#method-i-play","(winning_score)","<p>define play method, this will be the main function for playing rock paper\nscissors\n"],["player_choice","PrivateMethods","PrivateMethods.html#method-c-player_choice","()","<p>make a definition that asks for the players choice\n"],["player_outcome","PrivateMethods","PrivateMethods.html#method-c-player_outcome","(plays)","<p>define outcomes of players choice against cpu\n"],["README","","README_md.html","","<p>RPSG (Rock Paper Scissors Game)\n<p>Requirements\n<p>For Windows\n"]]}}
|
1
|
+
var search_data = {"index":{"searchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","continue()","final_outcome()","new()","play()","player_choice()","player_outcome()","readme"],"longSearchIndex":["constants","privatemethods","rpsg","rockpaperscissorsgame","rockpaperscissorsgame::continue()","privatemethods::final_outcome()","rockpaperscissorsgame::new()","rockpaperscissorsgame#play()","privatemethods::player_choice()","privatemethods::player_outcome()",""],"info":[["Constants","","Constants.html","","<p>create module that holds all contents for this script\n"],["PrivateMethods","","PrivateMethods.html","","<p>add module for private methods for the rpsg calculations\n"],["RPSG","","RPSG.html","","<p>specify the version for the rubygem\n"],["RockPaperScissorsGame","","RockPaperScissorsGame.html","","<p>create master class\n"],["continue","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-continue","(str1,str2,str3)","<p>add continue method for asking the user if they want to play rock paper\nscissors\n"],["final_outcome","PrivateMethods","PrivateMethods.html#method-c-final_outcome","(pl,co)","<p>define final outcome that gives the result of who one the whole match\n"],["new","RockPaperScissorsGame","RockPaperScissorsGame.html#method-c-new","()","<p>initialize variables\n"],["play","RockPaperScissorsGame","RockPaperScissorsGame.html#method-i-play","(winning_score)","<p>define play method, this will be the main function for playing rock paper\nscissors\n"],["player_choice","PrivateMethods","PrivateMethods.html#method-c-player_choice","()","<p>make a definition that asks for the players choice\n"],["player_outcome","PrivateMethods","PrivateMethods.html#method-c-player_outcome","(plays)","<p>define outcomes of players choice against cpu\n"],["README","","README_md.html","","<p>RPSG (Rock Paper Scissors Game)\n<p>Requirements\n<p>For Windows\n"]]}}
|
data/html/js/search_index.js.gz
CHANGED
Binary file
|
data/html/js/searcher.js.gz
CHANGED
Binary file
|
data/lib/Main.rb
CHANGED
data/lib/rpsg/version.rb
CHANGED
data/rpsg.gemspec
CHANGED