rps_telwell 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/README.md +20 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/.DS_Store +0 -0
- data/lib/rps_telwell.rb +9 -0
- data/lib/rps_telwell/board.rb +28 -0
- data/lib/rps_telwell/player.rb +55 -0
- data/lib/rps_telwell/rps.rb +71 -0
- data/lib/rps_telwell/version.rb +3 -0
- data/rps_telwell.gemspec +27 -0
- data/rps_telwell.sublime-workspace +618 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6a4adf1ab93b885214cff482d03ab169d353ef52
|
4
|
+
data.tar.gz: e674bd4b6e25b1bae896d7cacd052e5d0c2159a0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 88053a193ee1ef3354d51b943d93c9ac137e0a8de4a9251902a9beffbaf1ca9a8086e59bd9d92dbd689379e415390c3a9d3ae29b5f9942c94a1124213031c3e1
|
7
|
+
data.tar.gz: aa439fec8a3453e100344e07a64d27e813da0f1d5e356f399622a26c35203d838ca54623c7cc11f9481df4dfba7cc5ab4644212e63ab448ee79f8ab29b5f1d11
|
data/.DS_Store
ADDED
Binary file
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg/*
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# assignment_gems_sprint
|
2
|
+
Mining for glory
|
3
|
+
|
4
|
+
[Trevor Elwell](http://trevorelwell.me) gems sprint assignment.
|
5
|
+
|
6
|
+
# Introduction
|
7
|
+
This is an incredibly simple gem which allows you to play the game rock, paper, scissors from the CLI. It's not the best game in the world but hey, Rome wasn't built in a day.
|
8
|
+
|
9
|
+
# How to use
|
10
|
+
Once you've required the gem, simply create a new RockPaperScissors object:
|
11
|
+
|
12
|
+
`example = RockPaperScissors.new`
|
13
|
+
|
14
|
+
You'll see the object's information show up below it. Once you're ready, simply call the 'start' method on your new object to play!
|
15
|
+
|
16
|
+
`example.start`
|
17
|
+
|
18
|
+
Hope you enjoy, please feel free to email me if you have any questions.
|
19
|
+
|
20
|
+
**Trevor**
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rps_telwell"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/.DS_Store
ADDED
Binary file
|
data/lib/rps_telwell.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Controls the "board" for the game
|
2
|
+
# In RPS there isn't much board so this
|
3
|
+
# will control the output.
|
4
|
+
class Board
|
5
|
+
# Clear board
|
6
|
+
def clear
|
7
|
+
system "clear"
|
8
|
+
end
|
9
|
+
|
10
|
+
# Render
|
11
|
+
def render(player_1_wins= 0,player_2_wins=0)
|
12
|
+
output = "
|
13
|
+
ROCK PAPER SCISSORS
|
14
|
+
-------------------
|
15
|
+
You know how to play!
|
16
|
+
Enter:
|
17
|
+
1 for rock,
|
18
|
+
2 for paper, or
|
19
|
+
3 for scissors. Good luck!
|
20
|
+
|
21
|
+
SCORE
|
22
|
+
--------------------
|
23
|
+
Player 1: #{player_1_wins}
|
24
|
+
Player 2: #{player_2_wins}\n"
|
25
|
+
clear
|
26
|
+
print output
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Create a new player, this will be the
|
2
|
+
# human-interaction portion.
|
3
|
+
class Player
|
4
|
+
# Instead of this could have another method
|
5
|
+
# which just increments wins
|
6
|
+
attr_accessor :wins
|
7
|
+
|
8
|
+
# Initialize, get number of wins
|
9
|
+
def initialize
|
10
|
+
@wins = 0
|
11
|
+
end
|
12
|
+
|
13
|
+
# Validate move
|
14
|
+
def valid_move?(move)
|
15
|
+
# Make sure input is an integer
|
16
|
+
if move.class == Fixnum
|
17
|
+
|
18
|
+
# Make sure move is 1-3
|
19
|
+
if (1..3).to_a.include?(move)
|
20
|
+
true
|
21
|
+
else
|
22
|
+
false
|
23
|
+
end
|
24
|
+
else
|
25
|
+
false
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
# Create Human player
|
31
|
+
class Human < Player
|
32
|
+
# Human version of get_move
|
33
|
+
def get_move
|
34
|
+
error_message = nil
|
35
|
+
loop do
|
36
|
+
puts error_message || "Select your move:"
|
37
|
+
move = gets.chomp.to_i
|
38
|
+
if valid_move?(move)
|
39
|
+
return move
|
40
|
+
break
|
41
|
+
else
|
42
|
+
error_message = "Invalid input, please enter a number 1-3"
|
43
|
+
redo
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Create a new computer player.
|
50
|
+
class Computer < Player
|
51
|
+
# Computer version of get_move
|
52
|
+
def get_move
|
53
|
+
rand(1..3)
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Controls the overall game
|
2
|
+
class RockPaperScissors
|
3
|
+
# Set initial variables
|
4
|
+
def initialize
|
5
|
+
@player_1 = Human.new
|
6
|
+
@player_2 = Computer.new
|
7
|
+
@board = Board.new
|
8
|
+
# Could use a constant (or @@class variable) for this
|
9
|
+
@moves = ["rock","paper","scissors"]
|
10
|
+
end
|
11
|
+
|
12
|
+
# Start the game!
|
13
|
+
def start
|
14
|
+
# Begin the loop
|
15
|
+
loop do
|
16
|
+
# Display board
|
17
|
+
@board.render(@player_1.wins, @player_2.wins)
|
18
|
+
|
19
|
+
# Get player_1 selection
|
20
|
+
@player_1_move = @player_1.get_move
|
21
|
+
|
22
|
+
# Get player_2 selection
|
23
|
+
@player_2_move = @player_2.get_move
|
24
|
+
|
25
|
+
# Who won? Returns 1 for player 1, 2 for player 2, or nil for a draw
|
26
|
+
@winner = get_winner(@player_1_move,@player_2_move)
|
27
|
+
|
28
|
+
# Output winner
|
29
|
+
output_winner
|
30
|
+
|
31
|
+
# What next?
|
32
|
+
puts "What next? 1 to play again, 2 to quit"
|
33
|
+
input = gets.chomp.to_i
|
34
|
+
break if input == 2
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# Output winner
|
39
|
+
def output_winner
|
40
|
+
if @winner.nil?
|
41
|
+
puts "We had a draw! #{@moves[@player_1_move-1]} ties #{@moves[@player_2_move-1]}"
|
42
|
+
elsif @winner == 1
|
43
|
+
puts "Player 1 wins! #{@moves[@player_1_move-1]} beats #{@moves[@player_2_move-1]}"
|
44
|
+
@player_1.wins=(@player_1.wins+1)
|
45
|
+
else
|
46
|
+
puts "Player 2 wins! #{@moves[@player_2_move-1]} beats #{@moves[@player_1_move-1]}"
|
47
|
+
@player_2.wins=(@player_2.wins+1)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Get winner
|
52
|
+
def get_winner(player_1_move, player_2_move)
|
53
|
+
moves = [player_1_move,player_2_move]
|
54
|
+
# This means we have a draw
|
55
|
+
if moves[0] == moves[1]
|
56
|
+
nil
|
57
|
+
# Scenario for P1 rock
|
58
|
+
elsif moves[0] == 1
|
59
|
+
return 1 if moves[1] == 3
|
60
|
+
return 2
|
61
|
+
# Scenario for P1 paper
|
62
|
+
elsif moves[0] == 2
|
63
|
+
return 1 if moves[1] == 1
|
64
|
+
return 2
|
65
|
+
# Scenario for P1 scissors
|
66
|
+
elsif moves[0] == 3
|
67
|
+
return 1 if moves[1] == 2
|
68
|
+
return 2
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
data/rps_telwell.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rps_telwell/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rps_telwell"
|
8
|
+
spec.version = RpsTelwell::VERSION
|
9
|
+
spec.authors = ["Trevor Elwell"]
|
10
|
+
spec.email = ["me@trevorelwell.com"]
|
11
|
+
|
12
|
+
spec.summary = "For my coding school, VCS, I need to make a rock, paper, scissors gem."
|
13
|
+
spec.description = "One of my assignments is to make a rock, paper, scissors gem and make sure it's up and running!"
|
14
|
+
spec.homepage = "http://trevorelwell.com"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
if spec.respond_to?(:metadata)
|
22
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
end
|
@@ -0,0 +1,618 @@
|
|
1
|
+
{
|
2
|
+
"auto_complete":
|
3
|
+
{
|
4
|
+
"selected_items":
|
5
|
+
[
|
6
|
+
[
|
7
|
+
"NUM_CO",
|
8
|
+
"NUM_COLUMNS"
|
9
|
+
],
|
10
|
+
[
|
11
|
+
"player_1",
|
12
|
+
"player_1_wins"
|
13
|
+
],
|
14
|
+
[
|
15
|
+
"to",
|
16
|
+
"to_i"
|
17
|
+
],
|
18
|
+
[
|
19
|
+
"master_code",
|
20
|
+
"master_code_input"
|
21
|
+
],
|
22
|
+
[
|
23
|
+
"delete",
|
24
|
+
"delete_at"
|
25
|
+
],
|
26
|
+
[
|
27
|
+
"ending",
|
28
|
+
"ending_type"
|
29
|
+
],
|
30
|
+
[
|
31
|
+
"err",
|
32
|
+
"error_message"
|
33
|
+
],
|
34
|
+
[
|
35
|
+
"outpu",
|
36
|
+
"output_buffer"
|
37
|
+
],
|
38
|
+
[
|
39
|
+
"play",
|
40
|
+
"t.play"
|
41
|
+
],
|
42
|
+
[
|
43
|
+
"background-c",
|
44
|
+
"background-color"
|
45
|
+
],
|
46
|
+
[
|
47
|
+
"tex",
|
48
|
+
"text-decoration"
|
49
|
+
],
|
50
|
+
[
|
51
|
+
"each",
|
52
|
+
"each_with_index"
|
53
|
+
],
|
54
|
+
[
|
55
|
+
"number",
|
56
|
+
"number_array"
|
57
|
+
],
|
58
|
+
[
|
59
|
+
"map",
|
60
|
+
"number_array.map"
|
61
|
+
],
|
62
|
+
[
|
63
|
+
"return",
|
64
|
+
"return_two_digit_number"
|
65
|
+
],
|
66
|
+
[
|
67
|
+
"words",
|
68
|
+
"words_to_19"
|
69
|
+
],
|
70
|
+
[
|
71
|
+
"up",
|
72
|
+
"up_to_20_in_words"
|
73
|
+
],
|
74
|
+
[
|
75
|
+
"run",
|
76
|
+
"run_times"
|
77
|
+
],
|
78
|
+
[
|
79
|
+
"capital",
|
80
|
+
"capitalize_index"
|
81
|
+
],
|
82
|
+
[
|
83
|
+
"capitaliz",
|
84
|
+
"capitalize_index"
|
85
|
+
],
|
86
|
+
[
|
87
|
+
"this",
|
88
|
+
"this_word"
|
89
|
+
],
|
90
|
+
[
|
91
|
+
"inclu",
|
92
|
+
"vowels.include?"
|
93
|
+
],
|
94
|
+
[
|
95
|
+
"num",
|
96
|
+
"num_players"
|
97
|
+
],
|
98
|
+
[
|
99
|
+
"curren",
|
100
|
+
"current_number"
|
101
|
+
],
|
102
|
+
[
|
103
|
+
"get",
|
104
|
+
"get_next_index"
|
105
|
+
],
|
106
|
+
[
|
107
|
+
"current",
|
108
|
+
"current_index"
|
109
|
+
],
|
110
|
+
[
|
111
|
+
"count",
|
112
|
+
"counting_game"
|
113
|
+
],
|
114
|
+
[
|
115
|
+
"coun",
|
116
|
+
"counting_game"
|
117
|
+
]
|
118
|
+
]
|
119
|
+
},
|
120
|
+
"buffers":
|
121
|
+
[
|
122
|
+
],
|
123
|
+
"build_system": "",
|
124
|
+
"build_system_choices":
|
125
|
+
[
|
126
|
+
],
|
127
|
+
"build_varint": "",
|
128
|
+
"command_palette":
|
129
|
+
{
|
130
|
+
"height": 127.0,
|
131
|
+
"last_filter": "git push",
|
132
|
+
"selected_items":
|
133
|
+
[
|
134
|
+
[
|
135
|
+
"git push",
|
136
|
+
"Git: Push"
|
137
|
+
],
|
138
|
+
[
|
139
|
+
"git commit",
|
140
|
+
"Git: Commit"
|
141
|
+
],
|
142
|
+
[
|
143
|
+
"git add ",
|
144
|
+
"Git: Add..."
|
145
|
+
],
|
146
|
+
[
|
147
|
+
"git add",
|
148
|
+
"Git: Add..."
|
149
|
+
],
|
150
|
+
[
|
151
|
+
"git commi",
|
152
|
+
"Git: Commit"
|
153
|
+
],
|
154
|
+
[
|
155
|
+
"git add .",
|
156
|
+
"Git: Add..."
|
157
|
+
],
|
158
|
+
[
|
159
|
+
"install ",
|
160
|
+
"Package Control: Install Package"
|
161
|
+
],
|
162
|
+
[
|
163
|
+
"package remove",
|
164
|
+
"Package Control: Remove Package"
|
165
|
+
],
|
166
|
+
[
|
167
|
+
"color",
|
168
|
+
"Toggle Colorcode on this view"
|
169
|
+
],
|
170
|
+
[
|
171
|
+
"install",
|
172
|
+
"Package Control: Install Package"
|
173
|
+
],
|
174
|
+
[
|
175
|
+
"ruby",
|
176
|
+
"Set Syntax: Ruby"
|
177
|
+
],
|
178
|
+
[
|
179
|
+
"pack",
|
180
|
+
"Package Control: Remove Package"
|
181
|
+
],
|
182
|
+
[
|
183
|
+
"colorcode",
|
184
|
+
"Tweak Colorcode to current color scheme"
|
185
|
+
],
|
186
|
+
[
|
187
|
+
"ruby colo",
|
188
|
+
"Set Syntax: Ruby (Colorcode)"
|
189
|
+
],
|
190
|
+
[
|
191
|
+
"colorco",
|
192
|
+
"Toggle Colorcode on this view"
|
193
|
+
],
|
194
|
+
[
|
195
|
+
"install packa",
|
196
|
+
"Package Control: Install Package"
|
197
|
+
],
|
198
|
+
[
|
199
|
+
"emmet",
|
200
|
+
"Emmet: Merge Lines"
|
201
|
+
],
|
202
|
+
[
|
203
|
+
"emmet exp",
|
204
|
+
"Emmet: Expand Abbreviation"
|
205
|
+
],
|
206
|
+
[
|
207
|
+
"set html",
|
208
|
+
"Set Syntax: HTML"
|
209
|
+
],
|
210
|
+
[
|
211
|
+
"package install",
|
212
|
+
"Package Control: Install Package"
|
213
|
+
],
|
214
|
+
[
|
215
|
+
"html",
|
216
|
+
"Set Syntax: HTML"
|
217
|
+
],
|
218
|
+
[
|
219
|
+
"package insta",
|
220
|
+
"Package Control: Install Package"
|
221
|
+
],
|
222
|
+
[
|
223
|
+
"Git commit",
|
224
|
+
"Git: Commit"
|
225
|
+
],
|
226
|
+
[
|
227
|
+
"git",
|
228
|
+
"Git: Push"
|
229
|
+
],
|
230
|
+
[
|
231
|
+
"beau",
|
232
|
+
"BeautifyRuby"
|
233
|
+
],
|
234
|
+
[
|
235
|
+
"install pack",
|
236
|
+
"Package Control: Install Package"
|
237
|
+
],
|
238
|
+
[
|
239
|
+
"package in",
|
240
|
+
"Package Control: Install Package"
|
241
|
+
],
|
242
|
+
[
|
243
|
+
"load",
|
244
|
+
"SublimeREPL: Load current file"
|
245
|
+
],
|
246
|
+
[
|
247
|
+
"php",
|
248
|
+
"Set Syntax: PHP"
|
249
|
+
],
|
250
|
+
[
|
251
|
+
"sublime",
|
252
|
+
"SublimeREPL: Load current file"
|
253
|
+
],
|
254
|
+
[
|
255
|
+
"Snippet: ",
|
256
|
+
"Snippet: html"
|
257
|
+
],
|
258
|
+
[
|
259
|
+
"laod",
|
260
|
+
"SublimeREPL: Load current file"
|
261
|
+
],
|
262
|
+
[
|
263
|
+
"load ",
|
264
|
+
"SublimeREPL: Load current file"
|
265
|
+
],
|
266
|
+
[
|
267
|
+
"repl rub",
|
268
|
+
"SublimeREPL: Ruby"
|
269
|
+
],
|
270
|
+
[
|
271
|
+
"ruby irb",
|
272
|
+
"SublimeREPL: Ruby IRB (deprecated)"
|
273
|
+
],
|
274
|
+
[
|
275
|
+
"sublime ruby",
|
276
|
+
"SublimeREPL: Ruby"
|
277
|
+
],
|
278
|
+
[
|
279
|
+
"ru y",
|
280
|
+
"SublimeREPL: Ruby"
|
281
|
+
],
|
282
|
+
[
|
283
|
+
"reby",
|
284
|
+
"SublimeREPL: Ruby"
|
285
|
+
],
|
286
|
+
[
|
287
|
+
"rub",
|
288
|
+
"SublimeREPL: Ruby"
|
289
|
+
],
|
290
|
+
[
|
291
|
+
"Package Control: ins",
|
292
|
+
"Package Control: Install Package"
|
293
|
+
]
|
294
|
+
],
|
295
|
+
"width": 530.0
|
296
|
+
},
|
297
|
+
"console":
|
298
|
+
{
|
299
|
+
"height": 146.0,
|
300
|
+
"history":
|
301
|
+
[
|
302
|
+
]
|
303
|
+
},
|
304
|
+
"distraction_free":
|
305
|
+
{
|
306
|
+
"menu_visible": true,
|
307
|
+
"show_minimap": false,
|
308
|
+
"show_open_files": false,
|
309
|
+
"show_tabs": false,
|
310
|
+
"side_bar_visible": false,
|
311
|
+
"status_bar_visible": false
|
312
|
+
},
|
313
|
+
"file_history":
|
314
|
+
[
|
315
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/.gitignore",
|
316
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/rps_telwell/lib/rps_telwell/version.rb",
|
317
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/rps_telwell/lib/rps_telwell/rps.rb",
|
318
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/rps_telwell/lib/rps_telwell.rb",
|
319
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/rps_telwell/rps_telwell.gemspec",
|
320
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/rps_telwell/lib/player.rb",
|
321
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/rps_telwell/lib/board.rb",
|
322
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/rps_telwell/Gemfile",
|
323
|
+
"/Users/telwell/Desktop/VCS/project_ruby_game_center/rock_paper_scissors/rock_paper_scissors.rb",
|
324
|
+
"/Users/telwell/.bash_profile",
|
325
|
+
"/Users/telwell/Desktop/VCS/assignment_gems_sprint/README.md",
|
326
|
+
"/Users/telwell/.bash-profile",
|
327
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/lib/strreverser_telwell/version.rb",
|
328
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/lib/strreverser_telwell/word.rb",
|
329
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/lib/strreverser_telwell.rb",
|
330
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/lib/word.rb",
|
331
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/.gitignore",
|
332
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/strreverser_telwell/.gitignore",
|
333
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/strreverser_telwell/lib/strreverser_telwell.rb",
|
334
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/strreverser_telwell/lib/strreverser_telwell/version.rb",
|
335
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/strreverser_telwell/strreverser_telwell.gemspec",
|
336
|
+
"/Users/telwell/Desktop/VCS/streverser_gem/streverser.gemspec",
|
337
|
+
"/Users/telwell/Desktop/VCS/streverser/lib/streverser.rb",
|
338
|
+
"/Users/telwell/Desktop/VCS/streverser/streverser.gemspec",
|
339
|
+
"/Users/telwell/Desktop/VCS/streverser/pkg/streverser-0.0.1.gem",
|
340
|
+
"/Users/telwell/Desktop/VCS/streverser/lib/streverser/version.rb",
|
341
|
+
"/Users/telwell/Desktop/VCS/project_ruby_game_center/connect_four/connect_four.rb",
|
342
|
+
"/Users/telwell/Desktop/VCS/project_ruby_game_center/connect_four/player.rb",
|
343
|
+
"/Users/telwell/Desktop/VCS/project_ruby_game_center/connect_four/board.rb",
|
344
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings",
|
345
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/Default/Preferences.sublime-settings",
|
346
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/User/colorcoder.sublime-settings",
|
347
|
+
"/Users/telwell/Desktop/VCS/solution_mastermind/mastermind.rb",
|
348
|
+
"/Users/telwell/Desktop/VCS/assignment_toh/toh.rb",
|
349
|
+
"/Users/telwell/Desktop/VCS/assignment_mastermind/mastermind.rb",
|
350
|
+
"/Users/telwell/Desktop/VCS/project_ruby_game_center/warmup/warmup.rb",
|
351
|
+
"/Users/telwell/Desktop/VCS/project_ruby_game_center/README.md",
|
352
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/User/Distraction Free.sublime-settings",
|
353
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-settings",
|
354
|
+
"/Users/telwell/Desktop/VCS/assignment_mastermind/README.md",
|
355
|
+
"/Users/telwell/Desktop/VCS/assignment_toh/ttt.rb",
|
356
|
+
"/etc/hosts",
|
357
|
+
"/Users/telwell/Desktop/VCS/assignment_toh/README.md",
|
358
|
+
"/Users/telwell/Desktop/VCS/prep_facebook_pages/index.html",
|
359
|
+
"/Users/telwell/Downloads/Duta MAIN.sql",
|
360
|
+
"/Users/telwell/Desktop/scanlogs.txt",
|
361
|
+
"/Users/telwell/Desktop/Steencamp COM.sql",
|
362
|
+
"/Users/telwell/Desktop/Larry ORG.sql",
|
363
|
+
"/Users/telwell/Desktop/nm/test/test.js",
|
364
|
+
"/Users/telwell/Desktop/VCS/bootstrappy_smile/styles/sass/style.css.scss",
|
365
|
+
"/Users/telwell/Desktop/VCS/bootstrappy_smile/index.html",
|
366
|
+
"/Users/telwell/Desktop/VCS/assignment_markup_warmup_sprint/styles/sass/styles.css.scss",
|
367
|
+
"/Users/telwell/Desktop/VCS/assignment_markup_warmup_sprint/index.html",
|
368
|
+
"/Users/telwell/Desktop/VCS/bootstrappy_smile/inde",
|
369
|
+
"/Users/telwell/Desktop/Cedar_ORG.sql",
|
370
|
+
"/Users/telwell/Desktop/Cedar_COM.sql",
|
371
|
+
"/Users/telwell/Desktop/CDC_COM.sql",
|
372
|
+
"/Users/telwell/Desktop/VCS/assignment_markup_warmup_sprint/styles/sass/includes/_reset.css.scss",
|
373
|
+
"/Users/telwell/Desktop/VCS/assignment_markup_warmup_sprint/styles.css.scss",
|
374
|
+
"/Users/telwell/blogger/app/views/articles/index.html.erb",
|
375
|
+
"/Users/telwell/blogger/config/routes.rb",
|
376
|
+
"/Users/telwell/blogger/app/views/articles/_comment.html.erb",
|
377
|
+
"/Users/telwell/blogger/app/views/comments/_form.html.erb",
|
378
|
+
"/Users/telwell/blogger/app/views/articles/show.html.erb",
|
379
|
+
"/Users/telwell/blogger/app/controllers/comments_controller.rb",
|
380
|
+
"/Users/telwell/blogger/app/controllers/articles_controller.rb",
|
381
|
+
"/Users/telwell/blogger/app/views/articles/new.html.erb",
|
382
|
+
"/Users/telwell/blogger/app/views/articles/_form.html.erb",
|
383
|
+
"/Users/telwell/blogger/app/views/articles/edit.html.erb",
|
384
|
+
"/Users/telwell/blogger/db/migrate/20150319024442_create_articles.rb",
|
385
|
+
"/Users/telwell/blogger/app/views/layouts/application.html.erb",
|
386
|
+
"/Users/telwell/blogger/app/models/article.rb",
|
387
|
+
"/Users/telwell/Desktop/VCS/pairing_checkin/README.md",
|
388
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/15_in_words/in_words.rb",
|
389
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/10_temperature_object/temperature.rb",
|
390
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/10_temperature_object/temperature_object_spec.rb",
|
391
|
+
"/Users/telwell/blogger/app/helpers/articles_helper.rb",
|
392
|
+
"/Users/telwell/blogger/app/assets/stylesheets/screen.css",
|
393
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/15_in_words/in_words_spec.rb",
|
394
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/14_array_extensions/array_extensions.rb",
|
395
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/14_array_extensions/array_extensions_spec.rb",
|
396
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/10_temperature_object/temperature",
|
397
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/12_rpn_calculator/rpn_calculator.rb",
|
398
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/12_rpn_calculator/rpn_calculator_spec.rb",
|
399
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/11_dictionary/dictionary_spec.rb",
|
400
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/11_dictionary/dictionary.rb",
|
401
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/09_timer/timer_spec.rb",
|
402
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/09_timer/timer.rb",
|
403
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/09_timer/timer_orig.rb",
|
404
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/08_book_titles/book.rb",
|
405
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/08_book_titles/book_titles_spec.rb",
|
406
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/08_book_titles/book_titles.rb",
|
407
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/07_hello_friend/friend.rb",
|
408
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/07_hello_friend/hello_friend_spec.rb",
|
409
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/07_hello_friend/hello_friend.rb",
|
410
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/06_performance_monitor/performance_monitor.rb",
|
411
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/06_performance_monitor/performance_monitor_spec.rb",
|
412
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/05_silly_blocks/silly_blocks_spec.rb",
|
413
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/05_silly_blocks/silly_blocks.rb",
|
414
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/04_pig_latin/pig_latin_spec.rb",
|
415
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/04_pig_latin/pig_latin.rb",
|
416
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/03_simon_says/simon_says.rb",
|
417
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/03_simon_says/simon_says_spec.rb",
|
418
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/02_calculator/calculator_spec.rb",
|
419
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/02_calculator/calculator.rb",
|
420
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/01_temperature/temperature_spec.rb",
|
421
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/01_temperature/temperature.rb",
|
422
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/00_hello/hello.rb",
|
423
|
+
"/Users/telwell/Desktop/VCS/learn_ruby/00_hello/hello_spec.rb",
|
424
|
+
"/Users/telwell/Desktop/VCS/prep_ruby_challenges/countingGame.rb",
|
425
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/LoadFileToRepl/README.markdown",
|
426
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/SublimeREPL.sublime-settings",
|
427
|
+
"/Users/telwell/Library/Application Support/Sublime Text 3/Packages/User/SublimeREPL.sublime-settings"
|
428
|
+
],
|
429
|
+
"find":
|
430
|
+
{
|
431
|
+
"height": 26.0
|
432
|
+
},
|
433
|
+
"find_in_files":
|
434
|
+
{
|
435
|
+
"height": 93.0,
|
436
|
+
"where_history":
|
437
|
+
[
|
438
|
+
"",
|
439
|
+
"*.php",
|
440
|
+
""
|
441
|
+
]
|
442
|
+
},
|
443
|
+
"find_state":
|
444
|
+
{
|
445
|
+
"case_sensitive": false,
|
446
|
+
"find_history":
|
447
|
+
[
|
448
|
+
"better",
|
449
|
+
"7",
|
450
|
+
"a",
|
451
|
+
"include",
|
452
|
+
"7",
|
453
|
+
"Down",
|
454
|
+
" ",
|
455
|
+
"binding.",
|
456
|
+
"pry",
|
457
|
+
"size",
|
458
|
+
"http://",
|
459
|
+
"\\n",
|
460
|
+
"duta",
|
461
|
+
"http://andreiduta.com/wp-content/uploads",
|
462
|
+
"wp-content/uploads",
|
463
|
+
"wp_",
|
464
|
+
"/wp-.+",
|
465
|
+
"/wp-*+",
|
466
|
+
"/home/users/web/b2798/pow.bevansbranhamcom/",
|
467
|
+
"<?php $ldjamm=chr(99)",
|
468
|
+
"wp_",
|
469
|
+
"larry_",
|
470
|
+
"throw err",
|
471
|
+
"bottom",
|
472
|
+
"/sites/",
|
473
|
+
"multisitelogin.com/carlceder-org",
|
474
|
+
"wp_472_",
|
475
|
+
"uploads/carlceder-com/sites",
|
476
|
+
"multisitelogin.com/carlceder-com",
|
477
|
+
"wp_469_",
|
478
|
+
"--",
|
479
|
+
"uploads/carldavidceder-com/sites",
|
480
|
+
"/sites/",
|
481
|
+
"uploads/sites/468",
|
482
|
+
"uploads/carldavidceder-com",
|
483
|
+
"carldavidceder-com",
|
484
|
+
"multisitelogin.com/carldavidceder-com",
|
485
|
+
"wp_468_",
|
486
|
+
"@@words ",
|
487
|
+
"@@words",
|
488
|
+
"capitalized_index"
|
489
|
+
],
|
490
|
+
"highlight": true,
|
491
|
+
"in_selection": false,
|
492
|
+
"preserve_case": false,
|
493
|
+
"regex": true,
|
494
|
+
"replace_history":
|
495
|
+
[
|
496
|
+
"",
|
497
|
+
" ",
|
498
|
+
"http://andreiduta.com/wp-content/uploads/sites/20",
|
499
|
+
"wp_20_",
|
500
|
+
"",
|
501
|
+
"wp_2_",
|
502
|
+
"wp_",
|
503
|
+
"carlceder.org",
|
504
|
+
"wp_",
|
505
|
+
"uploads/sites",
|
506
|
+
"carlceder.com",
|
507
|
+
"wp_",
|
508
|
+
"uploads/sites",
|
509
|
+
"uploads/sites/468",
|
510
|
+
"carldavidceder.com",
|
511
|
+
"wp_",
|
512
|
+
"@words"
|
513
|
+
],
|
514
|
+
"reverse": false,
|
515
|
+
"show_context": true,
|
516
|
+
"use_buffer2": true,
|
517
|
+
"whole_word": false,
|
518
|
+
"wrap": true
|
519
|
+
},
|
520
|
+
"groups":
|
521
|
+
[
|
522
|
+
{
|
523
|
+
"sheets":
|
524
|
+
[
|
525
|
+
]
|
526
|
+
}
|
527
|
+
],
|
528
|
+
"incremental_find":
|
529
|
+
{
|
530
|
+
"height": 26.0
|
531
|
+
},
|
532
|
+
"input":
|
533
|
+
{
|
534
|
+
"height": 31.0
|
535
|
+
},
|
536
|
+
"layout":
|
537
|
+
{
|
538
|
+
"cells":
|
539
|
+
[
|
540
|
+
[
|
541
|
+
0,
|
542
|
+
0,
|
543
|
+
1,
|
544
|
+
1
|
545
|
+
]
|
546
|
+
],
|
547
|
+
"cols":
|
548
|
+
[
|
549
|
+
0.0,
|
550
|
+
1.0
|
551
|
+
],
|
552
|
+
"rows":
|
553
|
+
[
|
554
|
+
0.0,
|
555
|
+
1.0
|
556
|
+
]
|
557
|
+
},
|
558
|
+
"menu_visible": true,
|
559
|
+
"output.exec":
|
560
|
+
{
|
561
|
+
"height": 25.0
|
562
|
+
},
|
563
|
+
"output.find_results":
|
564
|
+
{
|
565
|
+
"height": 0.0
|
566
|
+
},
|
567
|
+
"output.git":
|
568
|
+
{
|
569
|
+
"height": 120.0
|
570
|
+
},
|
571
|
+
"pinned_build_system": "",
|
572
|
+
"project": "rps_telwell.sublime-project",
|
573
|
+
"replace":
|
574
|
+
{
|
575
|
+
"height": 48.0
|
576
|
+
},
|
577
|
+
"save_all_on_build": true,
|
578
|
+
"select_file":
|
579
|
+
{
|
580
|
+
"height": 0.0,
|
581
|
+
"last_filter": "",
|
582
|
+
"selected_items":
|
583
|
+
[
|
584
|
+
],
|
585
|
+
"width": 0.0
|
586
|
+
},
|
587
|
+
"select_project":
|
588
|
+
{
|
589
|
+
"height": 0.0,
|
590
|
+
"last_filter": "",
|
591
|
+
"selected_items":
|
592
|
+
[
|
593
|
+
],
|
594
|
+
"width": 0.0
|
595
|
+
},
|
596
|
+
"select_symbol":
|
597
|
+
{
|
598
|
+
"height": 0.0,
|
599
|
+
"last_filter": "",
|
600
|
+
"selected_items":
|
601
|
+
[
|
602
|
+
],
|
603
|
+
"width": 0.0
|
604
|
+
},
|
605
|
+
"selected_group": 0,
|
606
|
+
"settings":
|
607
|
+
{
|
608
|
+
},
|
609
|
+
"show_minimap": true,
|
610
|
+
"show_open_files": true,
|
611
|
+
"show_tabs": true,
|
612
|
+
"side_bar_visible": true,
|
613
|
+
"side_bar_width": 150.0,
|
614
|
+
"status_bar_visible": true,
|
615
|
+
"template_settings":
|
616
|
+
{
|
617
|
+
}
|
618
|
+
}
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rps_telwell
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Trevor Elwell
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: One of my assignments is to make a rock, paper, scissors gem and make
|
42
|
+
sure it's up and running!
|
43
|
+
email:
|
44
|
+
- me@trevorelwell.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".DS_Store"
|
50
|
+
- ".gitignore"
|
51
|
+
- Gemfile
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- bin/console
|
55
|
+
- bin/setup
|
56
|
+
- lib/.DS_Store
|
57
|
+
- lib/rps_telwell.rb
|
58
|
+
- lib/rps_telwell/board.rb
|
59
|
+
- lib/rps_telwell/player.rb
|
60
|
+
- lib/rps_telwell/rps.rb
|
61
|
+
- lib/rps_telwell/version.rb
|
62
|
+
- rps_telwell.gemspec
|
63
|
+
- rps_telwell.sublime-workspace
|
64
|
+
homepage: http://trevorelwell.com
|
65
|
+
licenses: []
|
66
|
+
metadata:
|
67
|
+
allowed_push_host: https://rubygems.org
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.4.5
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: For my coding school, VCS, I need to make a rock, paper, scissors gem.
|
88
|
+
test_files: []
|