rpsg 0.1.4 → 0.1.5
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/bin/rpsg +2 -2
- data/html/{RockPapaerScissorsGame.html → RockPaperScissorsGame.html} +4 -4
- data/html/created.rid +3 -3
- data/html/index.html +1 -1
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/table_of_contents.html +7 -7
- data/lib/rpsg/version.rb +1 -1
- data/rpsg.gemspec +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6937a6ecd4f976753d19b39a5b6727a701c50f1
|
4
|
+
data.tar.gz: 78de733927d9a7a02c8d02d62986ab9f83ee9f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05cba3f1d90675dfd43f73d09d5a0d1ed2e4e8dc79974565014aaa4ee8baecf9bbb5ee0ca5389e389dc296c3e641eb2fe452015d8291aae1830cf34a9b3a91f6
|
7
|
+
data.tar.gz: 98781b8eaf8820305c08bf87affe5bccdc7ac0a2593a1ec26d8da0ff3048977c2c3154e37fce78f3c9e3ab6dffdaa563d33a01dc1652cf4750a4097bd89c40df
|
data/bin/rpsg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env rubyn
|
2
2
|
|
3
|
-
class
|
3
|
+
class RockPaperScissorsGame
|
4
4
|
|
5
5
|
lib = File.expand_path("../../lib", __FILE__)
|
6
6
|
|
@@ -72,4 +72,4 @@ class RockPapaerScissorsGame
|
|
72
72
|
|
73
73
|
end
|
74
74
|
|
75
|
-
|
75
|
+
RockPaperScissorsGame.new.play(2) # best of 3 (0, 1, 2)
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class
|
7
|
+
<title>class RockPaperScissorsGame - RDoc Documentation</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
@@ -83,9 +83,9 @@
|
|
83
83
|
</div>
|
84
84
|
</nav>
|
85
85
|
|
86
|
-
<main role="main" aria-labelledby="class-
|
87
|
-
<h1 id="class-
|
88
|
-
class
|
86
|
+
<main role="main" aria-labelledby="class-RockPaperScissorsGame">
|
87
|
+
<h1 id="class-RockPaperScissorsGame" class="class">
|
88
|
+
class RockPaperScissorsGame
|
89
89
|
</h1>
|
90
90
|
|
91
91
|
<section class="description">
|
data/html/created.rid
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
Thu, 12 Oct 2017 14:
|
1
|
+
Thu, 12 Oct 2017 14:40:58 -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
4
|
lib/PrivateMethods.rb Thu, 12 Oct 2017 13:53:33 -0700
|
5
|
-
lib/rpsg/version.rb Thu, 12 Oct 2017
|
6
|
-
bin/rpsg Thu, 12 Oct 2017 14:
|
5
|
+
lib/rpsg/version.rb Thu, 12 Oct 2017 14:39:07 -0700
|
6
|
+
bin/rpsg Thu, 12 Oct 2017 14:40:54 -0700
|
7
7
|
test/rpsg.rb Thu, 12 Oct 2017 14:13:08 -0700
|
data/html/index.html
CHANGED
data/html/js/search_index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var search_data = {"index":{"searchIndex":["constants","privatemethods","rpsg","
|
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"]]}}
|
data/html/js/search_index.js.gz
CHANGED
Binary file
|
data/html/table_of_contents.html
CHANGED
@@ -53,7 +53,7 @@
|
|
53
53
|
<a href="RPSG.html">RPSG</a>
|
54
54
|
</li>
|
55
55
|
<li class="class">
|
56
|
-
<a href="
|
56
|
+
<a href="RockPaperScissorsGame.html">RockPaperScissorsGame</a>
|
57
57
|
</li>
|
58
58
|
</ul>
|
59
59
|
|
@@ -61,9 +61,9 @@
|
|
61
61
|
<ul>
|
62
62
|
|
63
63
|
<li class="method">
|
64
|
-
<a href="
|
64
|
+
<a href="RockPaperScissorsGame.html#method-c-continue">::continue</a>
|
65
65
|
—
|
66
|
-
<span class="container">
|
66
|
+
<span class="container">RockPaperScissorsGame</span>
|
67
67
|
|
68
68
|
<li class="method">
|
69
69
|
<a href="PrivateMethods.html#method-c-final_outcome">::final_outcome</a>
|
@@ -71,9 +71,9 @@
|
|
71
71
|
<span class="container">PrivateMethods</span>
|
72
72
|
|
73
73
|
<li class="method">
|
74
|
-
<a href="
|
74
|
+
<a href="RockPaperScissorsGame.html#method-c-new">::new</a>
|
75
75
|
—
|
76
|
-
<span class="container">
|
76
|
+
<span class="container">RockPaperScissorsGame</span>
|
77
77
|
|
78
78
|
<li class="method">
|
79
79
|
<a href="PrivateMethods.html#method-c-player_choice">::player_choice</a>
|
@@ -86,9 +86,9 @@
|
|
86
86
|
<span class="container">PrivateMethods</span>
|
87
87
|
|
88
88
|
<li class="method">
|
89
|
-
<a href="
|
89
|
+
<a href="RockPaperScissorsGame.html#method-i-play">#play</a>
|
90
90
|
—
|
91
|
-
<span class="container">
|
91
|
+
<span class="container">RockPaperScissorsGame</span>
|
92
92
|
</ul>
|
93
93
|
</main>
|
94
94
|
|
data/lib/rpsg/version.rb
CHANGED
data/rpsg.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "rpsg"
|
3
|
-
spec.version = "0.1.
|
3
|
+
spec.version = "0.1.5"
|
4
4
|
spec.date = "2017-10-12"
|
5
5
|
spec.summary = "A Rock Paper Scissors Game Ruby Gem"
|
6
6
|
spec.description = <<-EOF
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.license = "MIT"
|
20
20
|
spec.required_ruby_version = ">= 2.0.0"
|
21
21
|
spec.required_rubygems_version = ">= 2.6.0"
|
22
|
-
|
22
|
+
spec.extra_rdoc_files = "html/RockPaperScissorsGame.html"
|
23
23
|
spec.bindir = "bin"
|
24
24
|
spec.metadata = {
|
25
25
|
"issue_tracker" => "https://github.com/bag3318/RPSG/issues",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpsg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
@@ -96,7 +96,8 @@ email: ''
|
|
96
96
|
executables:
|
97
97
|
- rpsg
|
98
98
|
extensions: []
|
99
|
-
extra_rdoc_files:
|
99
|
+
extra_rdoc_files:
|
100
|
+
- html/RockPaperScissorsGame.html
|
100
101
|
files:
|
101
102
|
- ".gitignore"
|
102
103
|
- Gemfile
|
@@ -108,7 +109,7 @@ files:
|
|
108
109
|
- html/PrivateMethods.html
|
109
110
|
- html/README_md.html
|
110
111
|
- html/RPSG.html
|
111
|
-
- html/
|
112
|
+
- html/RockPaperScissorsGame.html
|
112
113
|
- html/created.rid
|
113
114
|
- html/css/fonts.css
|
114
115
|
- html/css/rdoc.css
|