scotts_studio_game 1.0.0

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjgzZmE5YTQzY2M2NTI2OWI3MjA1NTJmYzIxM2UzNzA4Nzc1N2E4NA==
5
+ data.tar.gz: !binary |-
6
+ YTQyN2IwOTEyYTRjNDViODBkNzhiMTkwZDEyNzI2ZTVlMTdhODQ3OQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YTY5YmIwYThhNDNhZWEyYjMzYjU2MGE2ZmU1Y2JjYzI1ODNlMWRkNjYxMzli
10
+ MDg3YTQyMzA0NzgyMmI4MTBiNTYzZDlhNjg1MmRhODNjNzVmNWEwNzNlYWZh
11
+ NGM0YzVmZGQzMzJmOTgxNmJmNDNlNTg3N2I1YzkxZjMyY2U3NDM=
12
+ data.tar.gz: !binary |-
13
+ NTczYzZlM2U0ZGIyMmNmOGIyODcyMWQ1NmZhMjZmYmY4ZThhYTEwYWEzZjNi
14
+ NTVlNDhkNDBjM2UyZjUxOGE4YTgzNzNhM2QyZWU3MDM4NDE2MTU3NzZmNTU1
15
+ Nzk0ZjRjZjIwYTJlNDBkMTEwYWUyM2VhY2U2MWU1MzY5NjVhNzE=
data/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+
2
+ Copyright (C) <year> <copyright holders>
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1 @@
1
+ This is what it is.
@@ -0,0 +1,3 @@
1
+ Alvin,100
2
+ Simon,60
3
+ Theo,125
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ module StudioGame
3
+ require_relative '../lib/studio_game/game'
4
+
5
+ default_player_file = File.join(File.dirname(__FILE__), 'players.csv')
6
+ knuckleheads = Game.new('knuckleheads')
7
+ knuckleheads.load_players(ARGV.shift || default_player_file)
8
+
9
+ clumsy = ClumsyPlayer.new('klutz', 105, 3)
10
+ knuckleheads.add_player(clumsy)
11
+ berserker = BerserkPlayer.new('berserker', 50)
12
+ knuckleheads.add_player(berserker)
13
+
14
+ loop do
15
+ puts "\nHow many rounds do you want to play? ('exit' to quit)"
16
+ answer = gets.chomp.downcase
17
+ case answer
18
+ when /^\d+$/
19
+ knuckleheads.play(answer.to_i)
20
+ when 'quit', 'exit'
21
+ knuckleheads.print_stats
22
+ break
23
+ else
24
+ puts "Please enter a number or 'quit'"
25
+ end
26
+ end
27
+
28
+ knuckleheads.save_high_scores
29
+ end
@@ -0,0 +1,7 @@
1
+ module StudioGame
2
+ module Auditable
3
+ def audit
4
+ puts "Rolled a #{self.number} (#{self.class})"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,39 @@
1
+ module StudioGame
2
+ require_relative 'player'
3
+
4
+ class BerserkPlayer < Player
5
+
6
+ def initialize(name, health=100)
7
+ super(name, health)
8
+ @w00t_count = 0
9
+ end
10
+
11
+ def berserk?
12
+ @w00t_count > 5
13
+ end
14
+
15
+ def w00t
16
+ super
17
+ @w00t_count +=1
18
+ puts "#{@name} is berserk!" if berserk?
19
+ end
20
+
21
+ def blam
22
+ if berserk?
23
+ w00t
24
+ else
25
+ super
26
+ end
27
+ end
28
+
29
+ end
30
+
31
+
32
+
33
+ if __FILE__ == $0
34
+ berserker = BerserkPlayer.new("berserker", 50)
35
+ 6.times { berserker.w00t }
36
+ 2.times { berserker.blam }
37
+ puts berserker.health
38
+ end
39
+ end
@@ -0,0 +1,41 @@
1
+ module StudioGame
2
+ require_relative 'player'
3
+
4
+ class ClumsyPlayer < Player
5
+
6
+ def initialize(name, health, w00t_factor=1)
7
+ super(name, health)
8
+ @w00t_factor = w00t_factor
9
+ end
10
+
11
+ def found_treasure(treasure)
12
+ damaged_treasure = Treasure.new(treasure.name, treasure.points / 2.0)
13
+ super(damaged_treasure)
14
+ end
15
+
16
+ def w00t
17
+ @w00t_factor.times { super }
18
+ end
19
+
20
+ end
21
+
22
+
23
+
24
+
25
+ if __FILE__ == $0
26
+ clumsy = ClumsyPlayer.new("klutz")
27
+
28
+ hammer = Treasure.new(:hammer, 50)
29
+ clumsy.found_treasure(hammer)
30
+ clumsy.found_treasure(hammer)
31
+ clumsy.found_treasure(hammer)
32
+
33
+ crowbar = Treasure.new(:crowbar, 400)
34
+ clumsy.found_treasure(crowbar)
35
+
36
+ clumsy.each_found_treasure do |treasure|
37
+ puts "#{treasure.points} total #{treasure.name} points"
38
+ end
39
+ puts "#{clumsy.points} grand total points"
40
+ end
41
+ end
@@ -0,0 +1,18 @@
1
+ module StudioGame
2
+ require_relative 'auditable'
3
+
4
+ class Die
5
+ include Auditable
6
+ attr_reader :number
7
+
8
+ def initialize
9
+ roll
10
+ end
11
+
12
+ def roll
13
+ @number = rand(1..6)
14
+ audit
15
+ @number
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,109 @@
1
+ module StudioGame
2
+ require_relative 'player'
3
+ require_relative 'clumsy_player'
4
+ require_relative 'berserk_player'
5
+ require_relative 'die'
6
+ require_relative 'game_turn'
7
+ require_relative 'treasure_trove'
8
+
9
+ class Game
10
+ attr_reader :title
11
+
12
+ def initialize(title)
13
+ @title = title.capitalize
14
+ @players = []
15
+ end
16
+
17
+ def load_players(from_file)
18
+ lines = File.readlines(from_file)
19
+ lines.each do |line|
20
+ player = Player.from_csv(line)
21
+ add_player(player)
22
+ end
23
+ end
24
+
25
+ def save_high_scores(to_file="high_scores.txt")
26
+ File.open(to_file, "w") do |file|
27
+ file.puts "#{@title} High Scores:"
28
+ @players.sort.each do |p|
29
+ file.puts high_score_entry(p)
30
+ end
31
+ end
32
+ end
33
+
34
+ def add_player(player)
35
+ @players << player
36
+ end
37
+
38
+ def play(rounds)
39
+ puts "-----\n"
40
+ puts "There are #{@players.size} players in #{@title}."
41
+
42
+ treasures = TreasureTrove::TREASURES
43
+ puts "\nThere are #{treasures.size} treasures in the treasure trove."
44
+ treasures.each do |t|
45
+ puts "A #{t.name} is worth #{t.points} points."
46
+ end
47
+ puts "\n"
48
+ @players.each do |p|
49
+ puts p
50
+ end
51
+
52
+ 1.upto(rounds) do |r|
53
+
54
+ puts "\nRound #{r}:"
55
+
56
+ @players.each do |p|
57
+ GameTurn.take_turn(p)
58
+ puts p
59
+ end
60
+ end
61
+ end
62
+
63
+ def total_points
64
+ @players.reduce(0) { |sum, player| sum + player.points }
65
+ end
66
+
67
+ def print_name_and_health(player)
68
+ puts "#{player.name} (#{player.health})"
69
+ end
70
+
71
+ def high_score_entry(player)
72
+ formatted_name = player.name.ljust(20, '.')
73
+ "#{formatted_name} #{player.score}"
74
+ end
75
+
76
+ def print_stats
77
+ strong_players = @players.select { |s| s.strong? }
78
+ wimpy_players = @players.reject { |r| r.strong? }
79
+
80
+
81
+ puts "\n#{title} Statistics:"
82
+
83
+ puts "\n#{strong_players.size} strong players:"
84
+ strong_players.each do |p|
85
+ print_name_and_health(p)
86
+ end
87
+
88
+ puts "\n#{wimpy_players.size} wimpy players:"
89
+ wimpy_players.each do |p|
90
+ print_name_and_health(p)
91
+ end
92
+
93
+ @players.sort.each do |p|
94
+ puts "\n#{p.name}'s point totals:"
95
+ p.each_found_treasure do |t|
96
+ puts "#{t.points} total #{t.name} points."
97
+ end
98
+ puts "#{p.points} grand total points."
99
+ end
100
+
101
+ puts "\n#{total_points} total points from treasures found."
102
+
103
+ puts "\n#{title} High Scores:"
104
+ @players.sort.each do |player|
105
+ puts high_score_entry(player)
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,25 @@
1
+ module StudioGame
2
+ module GameTurn
3
+ require_relative 'die'
4
+ require_relative 'loaded_die'
5
+ require_relative 'player'
6
+ require_relative 'treasure_trove'
7
+
8
+ def self.take_turn(player)
9
+ die = Die.new
10
+
11
+ case die.roll
12
+ when 1..2
13
+ player.blam
14
+ when 3..4
15
+ puts "#{player.name} was skipped."
16
+ else
17
+ player.w00t
18
+ end
19
+
20
+ treasure = TreasureTrove.random
21
+ player.found_treasure(treasure)
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,15 @@
1
+ module StudioGame
2
+ require_relative 'auditable'
3
+
4
+ class LoadedDie
5
+ include Auditable
6
+ attr_reader :number
7
+
8
+ def roll
9
+ numbers = [1, 1, 2, 5, 6, 6]
10
+ @number = numbers.sample
11
+ audit
12
+ @number
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ module StudioGame
2
+ module Playable
3
+ def blam
4
+ self.health -= 10
5
+ puts "#{name} got blammed!"
6
+ end
7
+ def w00t
8
+ self.health += 15
9
+ puts "#{name} got w00ted!"
10
+ end
11
+ def strong?
12
+ health > 100
13
+ end
14
+
15
+ end
16
+ end
@@ -0,0 +1,64 @@
1
+ module StudioGame
2
+ require_relative 'treasure_trove'
3
+ require_relative 'playable'
4
+
5
+ class Player
6
+ include Playable
7
+
8
+ attr_accessor :name
9
+ attr_accessor :health
10
+
11
+ def initialize(name, health=100)
12
+ @name = name.capitalize
13
+ @health = health
14
+ @found_treasures = Hash.new(0)
15
+ end
16
+ def name=(new_name)
17
+ @name = new_name.capitalize
18
+ end
19
+ def score
20
+ @health + points
21
+ end
22
+ def to_s
23
+ "I'm #{@name} with health = #{@health}, points = #{points}, and score = #{score}."
24
+ end
25
+ def self.from_csv(line)
26
+ name, health = line.split(",")
27
+ Player.new(name, Integer(health))
28
+ end
29
+ def <=>(other)
30
+ other.score <=> score
31
+ end
32
+ def found_treasure(treasure)
33
+ @found_treasures[treasure.name] += treasure.points
34
+ puts "#{@name} found a #{treasure.name} worth #{treasure.points}."
35
+ puts "#{@name}'s treasures: #{@found_treasures}"
36
+ end
37
+ def each_found_treasure
38
+ @found_treasures.each do |key, value|
39
+ yield Treasure.new(key, value)
40
+ end
41
+
42
+ end
43
+
44
+ def points
45
+ @found_treasures.values.reduce(0, :+)
46
+ end
47
+
48
+ end
49
+
50
+ # Example code:
51
+ if __FILE__ == $0 #this will only allow the following code to run if
52
+ #the current file (__FILE__) is the same name as
53
+ #the program being run ($0 or player.rb)
54
+ player = Player.new('moe')
55
+ puts player.name
56
+ puts player.health
57
+ player.w00t
58
+ puts player.health
59
+ player.blam
60
+ puts player.health
61
+ player.name = "larry"
62
+ puts player
63
+ end
64
+ end
@@ -0,0 +1,18 @@
1
+ module StudioGame
2
+ Treasure = Struct.new(:name, :points)
3
+
4
+ module TreasureTrove
5
+ TREASURES = [
6
+ Treasure.new(:pie, 5),
7
+ Treasure.new(:bottle, 25),
8
+ Treasure.new(:hammer, 50),
9
+ Treasure.new(:skillet, 100),
10
+ Treasure.new(:broomstick, 200),
11
+ Treasure.new(:crowbar, 400),
12
+ ]
13
+
14
+ def self.random
15
+ TREASURES.sample
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,30 @@
1
+ module StudioGame
2
+ require 'studio_game/berserk_player'
3
+
4
+ describe BerserkPlayer do
5
+
6
+ before do
7
+ @initial_health = 50
8
+ @player = BerserkPlayer.new("berserker", @initial_health)
9
+ end
10
+
11
+ it "does not go berserk when w00ted up to 5 times" do
12
+ 1.upto(5) { @player.w00t }
13
+
14
+ @player.berserk?.should be_false
15
+ end
16
+
17
+ it "goes berserk when w00ted more than 5 times" do
18
+ 1.upto(6) { @player.w00t }
19
+
20
+ @player.berserk?.should be_true
21
+ end
22
+
23
+ it "gets w00ted instead of blammed when it's gone berserk" do
24
+ 1.upto(6) { @player.w00t }
25
+ 1.upto(2) { @player.blam }
26
+
27
+ @player.health.should == @initial_health + (8 * 15)
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,38 @@
1
+ module StudioGame
2
+ require 'studio_game/clumsy_player'
3
+
4
+ describe ClumsyPlayer do
5
+ before do
6
+ @player = ClumsyPlayer.new("klutz", 150, 3)
7
+ end
8
+
9
+ it "only gets half the point value for each treasure" do
10
+ @player.points.should == 0
11
+
12
+ hammer = Treasure.new(:hammer, 50)
13
+ @player.found_treasure(hammer)
14
+ @player.found_treasure(hammer)
15
+ @player.found_treasure(hammer)
16
+
17
+ @player.points.should == 75
18
+
19
+ crowbar = Treasure.new(:crowbar, 400)
20
+ @player.found_treasure(crowbar)
21
+
22
+ @player.points.should == 275
23
+
24
+ yielded = []
25
+ @player.each_found_treasure do |treasure|
26
+ yielded << treasure
27
+ end
28
+
29
+ yielded.should == [Treasure.new(:hammer, 75), Treasure.new(:crowbar, 200)]
30
+ end
31
+
32
+ it "gets w00ted mulitplied by it's w00t factor" do
33
+ @player.w00t
34
+
35
+ @player.health.should == 195
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,80 @@
1
+ module StudioGame
2
+ require 'studio_game/game'
3
+
4
+ describe Game do
5
+
6
+ before do
7
+ @game = Game.new("Knuckleheads")
8
+
9
+ @initial_health = 100
10
+ @player = Player.new("moe", @initial_health)
11
+
12
+ @game.add_player(@player)
13
+ end
14
+
15
+ it "w00ts the player when a high number is rolled" do
16
+ Die.any_instance.stub(:roll).and_return(5)
17
+
18
+ @game.play(2)
19
+
20
+ @player.health.should == @initial_health + (15 * 2)
21
+ end
22
+
23
+ it "skips the player when a medium number is rolled" do
24
+ Die.any_instance.stub(:roll).and_return(3)
25
+
26
+ @game.play(2)
27
+
28
+ @player.health.should == @initial_health
29
+ end
30
+
31
+ it "blams the player when a low number is rolled" do
32
+ Die.any_instance.stub(:roll).and_return(1)
33
+
34
+ @game.play(2)
35
+
36
+ @player.health.should == @initial_health - (10 *2)
37
+ end
38
+
39
+ it "assigns a treasure for points during a player's turn" do
40
+ game = Game.new("Knuckleheads")
41
+ player = Player.new("moe")
42
+
43
+ game.add_player(player)
44
+
45
+ game.play(1)
46
+
47
+ player.points.should_not be_zero
48
+ end
49
+
50
+ it "computes total points as the sum of all player points" do
51
+ game = Game.new("Knuckleheads")
52
+
53
+ player1 = Player.new("moe")
54
+ player2 = Player.new("larry")
55
+
56
+ game.add_player(player1)
57
+ game.add_player(player2)
58
+
59
+ player1.found_treasure(Treasure.new(:hammer, 50))
60
+ player1.found_treasure(Treasure.new(:hammer, 50))
61
+ player2.found_treasure(Treasure.new(:crowbar, 400))
62
+
63
+ game.total_points.should == 500
64
+ end
65
+
66
+ context "in a collection of players" do
67
+ before do
68
+ @player1 = Player.new("moe", 100)
69
+ @player2 = Player.new("larry", 200)
70
+ @player3 = Player.new("curly", 300)
71
+
72
+ @players = [@player1, @player2, @player3]
73
+ end
74
+
75
+ it "is sorted by decreasing score" do
76
+ @players.sort.should == [@player3, @player2, @player1]
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,112 @@
1
+ module StudioGame
2
+ $stdout = StringIO.new
3
+ require 'studio_game/player.rb'
4
+ require 'studio_game/treasure_trove.rb'
5
+
6
+ describe Player do
7
+ before do
8
+ @player = Player.new('larry', 150)
9
+ @initial_health = 150
10
+ end
11
+
12
+ it "has a capitalized name" do
13
+ @player.name.should == "Larry"
14
+ end
15
+
16
+ it "has an initial health" do
17
+ @player.health.should == 150
18
+ end
19
+
20
+ it "has a string representation" do
21
+ @player.found_treasure(Treasure.new(:hammer, 50))
22
+ @player.found_treasure(Treasure.new(:hammer, 50))
23
+
24
+ @player.to_s.should == "I'm Larry with health = 150, points = 100, and score = 250."
25
+ end
26
+
27
+ it "computes a score as the sum of its health and points" do
28
+ @player.found_treasure(Treasure.new(:hammer, 50))
29
+ @player.found_treasure(Treasure.new(:hammer, 50))
30
+
31
+ @player.score.should == 250
32
+ end
33
+
34
+ it "increases health by 15 when w00ted" do
35
+ @player.w00t
36
+
37
+ @player.health.should == @initial_health + 15
38
+ end
39
+
40
+ it "decreases health by 10 when blammed" do
41
+ @player.blam
42
+
43
+ @player.health.should == @initial_health - 10
44
+ end
45
+
46
+ it "computes points as the sum of all treasure points" do
47
+ @player.points.should == 0
48
+
49
+ @player.found_treasure(Treasure.new(:hammer, 50))
50
+
51
+ @player.points.should == 50
52
+
53
+ @player.found_treasure(Treasure.new(:crowbar, 400))
54
+
55
+ @player.points.should == 450
56
+
57
+ @player.found_treasure(Treasure.new(:hammer, 50))
58
+
59
+ @player.points.should == 500
60
+ end
61
+
62
+ it "yields each found treasure and its total points" do
63
+ @player.found_treasure(Treasure.new(:skillet, 100))
64
+ @player.found_treasure(Treasure.new(:skillet, 100))
65
+ @player.found_treasure(Treasure.new(:hammer, 50))
66
+ @player.found_treasure(Treasure.new(:bottle, 5))
67
+ @player.found_treasure(Treasure.new(:bottle, 5))
68
+ @player.found_treasure(Treasure.new(:bottle, 5))
69
+ @player.found_treasure(Treasure.new(:bottle, 5))
70
+ @player.found_treasure(Treasure.new(:bottle, 5))
71
+
72
+ yielded = []
73
+ @player.each_found_treasure do |treasure|
74
+ yielded << treasure
75
+ end
76
+
77
+ yielded.should == [
78
+ Treasure.new(:skillet, 200),
79
+ Treasure.new(:hammer, 50),
80
+ Treasure.new(:bottle, 25)
81
+ ]
82
+ end
83
+
84
+ context "when created from a csv file" do
85
+ before do
86
+ @line = "larry,150"
87
+ end
88
+ it "should get created" do
89
+ player = Player.from_csv(@line)
90
+ player.to_s.should == "I'm Larry with health = 150, points = 0, and score = 150."
91
+ end
92
+ end
93
+
94
+ context "with a health greater than 100" do
95
+ before do
96
+ @player = Player.new('curly', 150)
97
+ end
98
+ it "is strong" do
99
+ @player.should be_strong
100
+ end
101
+ end
102
+
103
+ context "with a health of 100 or less" do
104
+ before do
105
+ @player = Player.new('curly', 100)
106
+ end
107
+ it "is wimpy" do
108
+ @player.should_not be_strong
109
+ end
110
+ end
111
+ end
112
+ end
@@ -0,0 +1,56 @@
1
+ module StudioGame
2
+ require 'studio_game/treasure_trove'
3
+
4
+ describe Treasure do
5
+
6
+ before do
7
+ @treasure = Treasure.new(:hammer, 50)
8
+ end
9
+
10
+ it "has a name attribute" do
11
+ @treasure.name.should == :hammer
12
+ end
13
+
14
+ it "has a points attribute" do
15
+ @treasure.points.should == 50
16
+ end
17
+
18
+ end
19
+
20
+ describe TreasureTrove do
21
+
22
+ it "has six treasures" do
23
+ TreasureTrove::TREASURES.size.should == 6
24
+ end
25
+
26
+ it "has a pie worth 5 points" do
27
+ TreasureTrove::TREASURES[0].should == Treasure.new(:pie, 5)
28
+ end
29
+
30
+ it "has a bottle worth 25 points" do
31
+ TreasureTrove::TREASURES[1].should == Treasure.new(:bottle, 25)
32
+ end
33
+
34
+ it "has a hammer worth 50 points" do
35
+ TreasureTrove::TREASURES[2].should == Treasure.new(:hammer, 50)
36
+ end
37
+
38
+ it "has a skillet worth 100 points" do
39
+ TreasureTrove::TREASURES[3].should == Treasure.new(:skillet, 100)
40
+ end
41
+
42
+ it "has a broomstick worth 200 points" do
43
+ TreasureTrove::TREASURES[4].should == Treasure.new(:broomstick, 200)
44
+ end
45
+
46
+ it "has a crowbar worth 400 points" do
47
+ TreasureTrove::TREASURES[5].should == Treasure.new(:crowbar, 400)
48
+ end
49
+
50
+ it "returns a random treasure" do
51
+ treasure = TreasureTrove.random
52
+
53
+ TreasureTrove::TREASURES.should include(treasure)
54
+ end
55
+ end
56
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scotts_studio_game
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Scott E. Knight
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: This is what it is.
28
+ email: scotteknight@gmail.com
29
+ executables:
30
+ - studio_game
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - bin/players.csv
35
+ - bin/studio_game
36
+ - lib/studio_game/auditable.rb
37
+ - lib/studio_game/berserk_player.rb
38
+ - lib/studio_game/clumsy_player.rb
39
+ - lib/studio_game/die.rb
40
+ - lib/studio_game/game.rb
41
+ - lib/studio_game/game_turn.rb
42
+ - lib/studio_game/loaded_die.rb
43
+ - lib/studio_game/playable.rb
44
+ - lib/studio_game/player.rb
45
+ - lib/studio_game/treasure_trove.rb
46
+ - spec/studio_game/berserk_player_spec.rb
47
+ - spec/studio_game/clumsy_player_spec.rb
48
+ - spec/studio_game/game_spec.rb
49
+ - spec/studio_game/player_spec.rb
50
+ - spec/studio_game/treasure_trove_spec.rb
51
+ - LICENSE
52
+ - README
53
+ homepage: http://scotteknight.com
54
+ licenses: []
55
+ metadata: {}
56
+ post_install_message:
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '1.9'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubyforge_project:
72
+ rubygems_version: 2.0.6
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Game created from Pragmatic Studio's Ruby Course
76
+ test_files:
77
+ - spec/studio_game/berserk_player_spec.rb
78
+ - spec/studio_game/clumsy_player_spec.rb
79
+ - spec/studio_game/game_spec.rb
80
+ - spec/studio_game/player_spec.rb
81
+ - spec/studio_game/treasure_trove_spec.rb