PlayRockPaperScissorsGame 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -19
- data/bin/PlayRockPaperScissorsGame +2 -2
- data/bin/rps +2 -2
- data/lib/rps.rb +2 -4
- 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: 044776f68f3b66c86b3809680e5b7a0a7f3c3a59
|
4
|
+
data.tar.gz: f0f71e810592dc03a965cf36cf6e2b19a78d8616
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bfe7265470f06342edeff02ace790fb40fe300a0b547dd66a76a6cbf0d8a1cf3c0f6666fa18311aceb30cfce5e4bfe0c7b4dcdb4823ae5c4dcd213b6245917e
|
7
|
+
data.tar.gz: 4a2ef23d3a5f9616d9bc200892fa0f3379ad75421be569b33664b0c79690f2de98b1807b7358bfdf2e476e5b1e98af2a7e37faa443425d67949d3bbb01af271e
|
data/README.md
CHANGED
@@ -6,34 +6,24 @@ How to Run/Install
|
|
6
6
|
|
7
7
|
### Install & Run on Macintosh
|
8
8
|
|
9
|
-
1. Run the `rps.bash` with the `Terminal`
|
10
|
-
|
11
|
-
#### Uninstalling
|
12
|
-
|
13
|
-
1. Run the `uninstaller.sh` file with the `Terminal`
|
14
|
-
|
15
|
-
<!--
|
16
|
-
1. Open the `Terminal` and copy + paste in this line: `\curl -sSL https://get.rvm.io | bash -s stable --ruby`
|
17
|
-
2. Then copy and paste in this line: `gem install rps`; hit <kbd>return</kbd>
|
9
|
+
1. Run the `rps.bash` file (located in the `exec` folder) with the `Terminal`
|
18
10
|
|
19
11
|
#### Running
|
20
|
-
1. Go into the `Terminal` and type in `rps`; hit <kbd>return</kbd>
|
21
12
|
|
22
|
-
|
13
|
+
1. Open the `Terminal`
|
14
|
+
2. Type in: `rps`, or `PlayRockPaperScissorsGame`
|
15
|
+
3. Hit <kbd>return</kbd>
|
23
16
|
|
24
|
-
|
25
|
-
If RVM fails to install (homebrew), run this in the `Terminal`: `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`; hit <kbd>return</kbd>
|
17
|
+
#### Uninstalling
|
26
18
|
|
27
|
-
|
28
|
-
If you get an error with `xcrun` and `command line tools not found`, you need to run this in the `Terminal`: `sudo xcode-select --install`; hit <kbd>return</kbd>.
|
29
|
-
-->
|
19
|
+
1. Run the `uninstaller.sh` file (located in the `exec` folder) with the `Terminal`
|
30
20
|
|
31
21
|
### Install & Run on Windows
|
32
22
|
|
33
|
-
1. Download and install Ruby for Windows (if not already
|
34
|
-
2.
|
23
|
+
1. Download and install Ruby for Windows (if not already installed); download [here](https://rubyinstaller.org/downloads/)
|
24
|
+
2. Run the `rps.bat` file (located in the `exec` folder)
|
35
25
|
|
36
26
|
#### Running
|
37
27
|
|
38
|
-
1.
|
28
|
+
1. Open the `rps.bat` file (located in the `exec` folder)
|
39
29
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
class
|
3
|
+
class PlayRockPaperScissorsGame
|
4
4
|
|
5
5
|
class RPS
|
6
6
|
|
@@ -98,5 +98,5 @@ class Master
|
|
98
98
|
end;
|
99
99
|
end;
|
100
100
|
|
101
|
-
|
101
|
+
PlayRockPaperScissorsGame::RPS::RockPaperScissors.new.play(3); # best of 3
|
102
102
|
|
data/bin/rps
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
class
|
3
|
+
class PlayRockPaperScissorsGame
|
4
4
|
|
5
5
|
class RPS
|
6
6
|
|
@@ -98,5 +98,5 @@ class Master
|
|
98
98
|
end;
|
99
99
|
end;
|
100
100
|
|
101
|
-
|
101
|
+
PlayRockPaperScissorsGame::RPS::RockPaperScissors.new.play(3); # best of 3
|
102
102
|
|
data/lib/rps.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
class Master
|
1
|
+
class PlayRockPaperScissorsGame
|
4
2
|
|
5
3
|
class RPS
|
6
4
|
|
@@ -98,5 +96,5 @@ class Master
|
|
98
96
|
end;
|
99
97
|
end;
|
100
98
|
|
101
|
-
|
99
|
+
PlayRockPaperScissorsGame::RPS::RockPaperScissors.new.play(3); # best of 3
|
102
100
|
|