Kevins-Studio-Game 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (C) 2012 Kevin Powell
2
+
3
+ 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:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ 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 project was created using Pragmatic Studio's Ruby training
@@ -0,0 +1,3 @@
1
+ Alvin,100
2
+ Simon,60
3
+ Theo,125
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../lib/studio_game/game'
3
+
4
+ game = StudioGame::Game.new("Knuckleheads")
5
+ default_player_file = File.join(File.dirname(__FILE__), 'players.csv')
6
+
7
+ game.load_players(ARGV.shift || default_player_file)
8
+
9
+ clumsy = StudioGame::ClumsyPlayer.new("klutz", 105, 10)
10
+ game.add_player(clumsy)
11
+
12
+ berserker = StudioGame::BerserkPlayer.new("berserker", 50)
13
+ game.add_player(berserker)
14
+
15
+ loop do
16
+ puts "\nHow many game rounds? ('quit' to exit)"
17
+ answer = gets.chomp.downcase
18
+ case answer
19
+ when /^\d+$/
20
+ game.play(answer.to_i)
21
+ when 'quit', 'exit'
22
+ game.print_stats
23
+ game.save_high_scores
24
+ break
25
+ else
26
+ puts "Please enter a number or type 'quit' to quit"
27
+ end
28
+ 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,31 @@
1
+ require_relative 'player'
2
+
3
+ module StudioGame
4
+ class BerserkPlayer < Player
5
+ def initialize(name, health)
6
+ super(name, health)
7
+ @w00t_count = 0
8
+ end
9
+
10
+ def berserk?
11
+ @w00t_count > 5
12
+ end
13
+
14
+ def w00t
15
+ super
16
+ @w00t_count += 1
17
+ puts "WARNING: #{@name} has gone berserk!" if berserk?
18
+ end
19
+
20
+ def blam
21
+ berserk? ? w00t : super
22
+ end
23
+ end
24
+
25
+ if __FILE__ == $0
26
+ berserker = BerserkPlayer.new("berserker", 50)
27
+ 6.times { berserker.w00t }
28
+ 2.times { berserker.blam }
29
+ puts berserker.heal
30
+ end
31
+ end
@@ -0,0 +1,38 @@
1
+ require_relative 'player'
2
+ require_relative 'treasure_trove'
3
+
4
+ module StudioGame
5
+ class ClumsyPlayer < Player
6
+ def initialize(name, health, boost)
7
+ super(name, health)
8
+ @boost = boost
9
+ end
10
+
11
+ def found_treasure(treasure)
12
+ damaged_treasure = Treasure.new(treasure.name, treasure.points / 2)
13
+ super(damaged_treasure)
14
+ end
15
+
16
+ def w00t
17
+ super
18
+ @health += @boost
19
+ end
20
+ end
21
+
22
+ if __FILE__ == $0
23
+ clumsy = ClumsyPlayer.new("klutz")
24
+
25
+ hammer = Treasure.new(:hammer, 50)
26
+ clumsy.found_treasure(hammer)
27
+ clumsy.found_treasure(hammer)
28
+ clumsy.found_treasure(hammer)
29
+
30
+ crowbar = Treasure.new(:crowbar, 400)
31
+ clumsy.found_treasure(crowbar)
32
+
33
+ clumsy.each_found_treasure do |treasure|
34
+ puts "#{treasure.points} total #{treasure.name} points"
35
+ end
36
+ puts "#{clumsy.points} grand total points"
37
+ end
38
+ end
@@ -0,0 +1,18 @@
1
+ require_relative 'auditable'
2
+
3
+ module StudioGame
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,106 @@
1
+ require_relative 'player'
2
+ require_relative 'clumsy_player'
3
+ require_relative 'berserk_player'
4
+ require_relative 'game_turn'
5
+ require_relative 'treasure_trove'
6
+
7
+ module StudioGame
8
+ class Game
9
+ attr_reader :title
10
+
11
+ def initialize(title)
12
+ @title = title
13
+ @players = []
14
+ end
15
+
16
+ def load_players(from_file)
17
+ File.readlines(from_file).each do |line|
18
+ add_player(Player.from_csv(line))
19
+ end
20
+ end
21
+
22
+ def add_player(player)
23
+ @players << player
24
+ end
25
+
26
+ def play(rounds)
27
+ puts "There are #{@players.size} players in #{@title}"
28
+ puts @players
29
+
30
+ treasures = TreasureTrove::TREASURES
31
+ puts "\nThere are #{treasures.size} treasures to be found:"
32
+ treasures.each do |treasure|
33
+ puts "A #{treasure.name} is worth #{treasure.points} points"
34
+ end
35
+
36
+ 1.upto(rounds) do |round|
37
+ puts "\nRound #{round}:"
38
+ @players.each do |p|
39
+ GameTurn.take_turn(p)
40
+ puts p
41
+ end
42
+
43
+ if block_given?
44
+ break if yield
45
+ end
46
+ end
47
+ end
48
+
49
+ def total_points
50
+ @players.reduce(0) do |sum, player|
51
+ sum + player.points
52
+ end
53
+ end
54
+
55
+ def print_name_and_health(player)
56
+ puts "\n#{player.name} (#{player.health})"
57
+ end
58
+
59
+ def save_high_scores(to_file="high_scores.txt")
60
+ File.open(to_file, "w") do |file|
61
+ file.puts "#{@title} High Scores:"
62
+ @players.sort.each do |p|
63
+ file.puts high_score_entry(p)
64
+ end
65
+ end
66
+ end
67
+
68
+ def high_score_entry(player)
69
+ "#{player.name.ljust(20, '.')} #{player.score}"
70
+ end
71
+
72
+ def print_stats
73
+ strong, wimpy = @players.partition { |p| p.strong? }
74
+ puts "\n#{@title} Statistics:"
75
+ if strong.size > 0
76
+ puts "\n#{strong.size} strong players:"
77
+ strong.each do |p|
78
+ print_name_and_health(p)
79
+ end
80
+ end
81
+
82
+ if wimpy.size > 0
83
+ puts "\n#{wimpy.size} wimpy players:"
84
+ wimpy.each do |p|
85
+ print_name_and_health(p)
86
+ end
87
+ end
88
+
89
+ puts "\n#{title} High Scores:\n"
90
+ @players.sort.each do |p|
91
+ puts high_score_entry(p)
92
+ end
93
+
94
+ @players.sort.each do |p|
95
+ puts "\n#{p.name}'s point totals:"
96
+ p.each_found_treasure do |treasure|
97
+ puts "#{treasure.points} total #{treasure.name} points"
98
+ end
99
+ puts "#{p.points} grand total points"
100
+ end
101
+
102
+ puts "#{total_points} total points from treasures found"
103
+ # "Knuckleheads Statistics:\n\n1 wimpy player:\nMoe (100)"
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,22 @@
1
+ require_relative 'die'
2
+ require_relative 'loaded_die'
3
+ require_relative 'player'
4
+ require_relative 'treasure_trove'
5
+
6
+ module StudioGame
7
+ module GameTurn
8
+ def self.take_turn(player)
9
+ die = Die.new
10
+ case die.roll
11
+ when 1..2
12
+ player.blam
13
+ when 3..4
14
+ puts "#{player.name} was skipped"
15
+ when 5..6
16
+ player.w00t
17
+ end
18
+ treasure = TreasureTrove.random
19
+ player.found_treasure(treasure)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,16 @@
1
+ require_relative 'auditable'
2
+
3
+ module StudioGame
4
+ class LoadedDie
5
+ include Auditable
6
+
7
+ attr_reader :number
8
+
9
+ def roll
10
+ numbers = [1,1,2,5,6,6]
11
+ @number = numbers.sample
12
+ audit
13
+ @number
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ module StudioGame
2
+ module Playable
3
+ def blam
4
+ self.health -= 10
5
+ puts "#{name} got blammed!"
6
+ end
7
+
8
+ def w00t
9
+ self.health += 15
10
+ puts "#{name} got w00ted!"
11
+ end
12
+
13
+ def strong?
14
+ health > 100
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,58 @@
1
+ require 'csv'
2
+ require_relative 'playable'
3
+
4
+ module StudioGame
5
+ class Player
6
+ include Playable
7
+ attr_accessor :name, :health
8
+
9
+ def initialize(name, health=100)
10
+ @name = name.capitalize
11
+ @health = health
12
+ @found_treasures = Hash.new(0)
13
+ end
14
+
15
+ def self.from_csv(line)
16
+ name, health = line.parse_csv
17
+ Player.new(name, Integer(health))
18
+ end
19
+
20
+ def score
21
+ @health + points
22
+ end
23
+
24
+ def to_s
25
+ "I'm #{@name} with health = #{@health}, points = #{points}, and score = #{score}."
26
+ end
27
+
28
+ def <=>(other_player)
29
+ other_player.score <=> score
30
+ end
31
+
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
+
38
+ def each_found_treasure
39
+ @found_treasures.each do |name, points|
40
+ yield Treasure.new(name, points)
41
+ end
42
+ end
43
+
44
+ def points
45
+ @found_treasures.values.reduce(0, :+)
46
+ end
47
+ end
48
+
49
+ if __FILE__ == $0
50
+ player = Player.new("moe")
51
+ puts player.name
52
+ puts player.health
53
+ player.w00t
54
+ puts player.health
55
+ player.blam
56
+ puts player.health
57
+ end
58
+ 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,27 @@
1
+ require 'studio_game/berserk_player'
2
+
3
+ module StudioGame
4
+ describe BerserkPlayer do
5
+ before do
6
+ @initial_health = 50
7
+ @player = BerserkPlayer.new("berserker", @initial_health)
8
+ end
9
+
10
+ it "does not go berserk when w00ted up to 5 times" do
11
+ 1.upto(5) { @player.w00t }
12
+ @player.berserk?.should be_false
13
+ end
14
+
15
+ it "goes berserk when w00ted more than 5 times" do
16
+ 1.upto(6) { @player.w00t }
17
+ @player.berserk?.should be_true
18
+ end
19
+
20
+ it "gets w00ted instead of blammed when it's gone berserk" do
21
+ 1.upto(6) { @player.w00t }
22
+ 1.upto(2) { @player.blam }
23
+
24
+ @player.health.should == @initial_health + (8 * 15)
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ require 'studio_game/clumsy_player'
2
+
3
+ module StudioGame
4
+ describe ClumsyPlayer do
5
+ before do
6
+ @boost = 5
7
+ @initial_health = 105
8
+ @player = ClumsyPlayer.new("klutz", @initial_health, @boost)
9
+ end
10
+
11
+ it "only gets half the point value for each treasure" do
12
+ @player.points.should == 0
13
+
14
+ hammer = Treasure.new(:hammer, 50)
15
+ @player.found_treasure(hammer)
16
+ @player.found_treasure(hammer)
17
+ @player.found_treasure(hammer)
18
+
19
+ @player.points.should == 75
20
+
21
+ crowbar = Treasure.new(:crowbar, 400)
22
+ @player.found_treasure(crowbar)
23
+
24
+ @player.points.should == 275
25
+
26
+ yielded = []
27
+ @player.each_found_treasure do |treasure|
28
+ yielded << treasure
29
+ end
30
+
31
+ yielded.should == [Treasure.new(:hammer, 75), Treasure.new(:crowbar, 200)]
32
+ end
33
+
34
+ it "gets additional health boost when w00ted" do
35
+ @player.w00t
36
+ @player.health.should == @initial_health + 15 + @boost
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,88 @@
1
+ require 'studio_game/game'
2
+
3
+ module StudioGame
4
+ describe Game do
5
+ it "assigns a treasure for points during a player's turn" do
6
+ game = Game.new("Knuckleheads")
7
+ player = Player.new("moe")
8
+
9
+ game.add_player(player)
10
+
11
+ game.play(1)
12
+
13
+ player.points.should_not be_zero
14
+ end
15
+
16
+ it "computes total points as the sum of all player points" do
17
+ game = Game.new("Knuckleheads")
18
+
19
+ player1 = Player.new("moe")
20
+ player2 = Player.new("larry")
21
+
22
+ game.add_player(player1)
23
+ game.add_player(player2)
24
+
25
+ player1.found_treasure(Treasure.new(:hammer, 50))
26
+ player1.found_treasure(Treasure.new(:hammer, 50))
27
+ player2.found_treasure(Treasure.new(:crowbar, 400))
28
+
29
+ game.total_points.should == 500
30
+ end
31
+
32
+ context "with one round" do
33
+ before do
34
+ @game = Game.new("Knuckleheads")
35
+ @initial_health = 100
36
+ @player = Player.new("moe", @initial_health)
37
+ @game.add_player(@player)
38
+ @rounds = 1
39
+ end
40
+
41
+ it "w00ts the player if a high number is rolled" do
42
+ Die.any_instance.stub(:roll).and_return(5)
43
+ @game.play(@rounds)
44
+ @player.health.should == @initial_health + 15
45
+ end
46
+
47
+ it "skips the player if a medium number is rolled" do
48
+ Die.any_instance.stub(:roll).and_return(3)
49
+ @game.play(@rounds)
50
+ @player.health.should == @initial_health
51
+ end
52
+
53
+ it "blams the player if a low number is rolled" do
54
+ Die.any_instance.stub(:roll).and_return(1)
55
+ @game.play(@rounds)
56
+ @player.health.should == @initial_health - 10
57
+ end
58
+ end
59
+
60
+ context "with two rounds" do
61
+ before do
62
+ @game = Game.new("Knuckleheads")
63
+ @initial_health = 100
64
+ @player = Player.new("moe", @initial_health)
65
+ @game.add_player(@player)
66
+ @rounds = 2
67
+ end
68
+
69
+ it "w00ts the player if a high number is rolled" do
70
+ Die.any_instance.stub(:roll).and_return(5)
71
+ @game.play(@rounds)
72
+ @player.health.should == @initial_health + 30
73
+ end
74
+
75
+ it "skips the player if a medium number is rolled" do
76
+ Die.any_instance.stub(:roll).and_return(3)
77
+ @game.play(@rounds)
78
+ @player.health.should == @initial_health
79
+ end
80
+
81
+ it "blams the player if a low number is rolled" do
82
+ Die.any_instance.stub(:roll).and_return(1)
83
+ @game.play(@rounds)
84
+ @player.health.should == @initial_health - 20
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,130 @@
1
+ require 'studio_game/player'
2
+ require 'studio_game/treasure_trove'
3
+
4
+ module StudioGame
5
+ describe Player do
6
+ before do
7
+ @player_name = "larry"
8
+ @name_length = @player_name.length
9
+ @initial_health = 150
10
+ @player = Player.new(@player_name, @initial_health)
11
+ end
12
+
13
+ it "has a capitalized name" do
14
+ @player.name.should == "Larry"
15
+ end
16
+
17
+ it "has an initial health" do
18
+ @player.health.should == 150
19
+ end
20
+
21
+ it "has a string representation" do
22
+ @player.found_treasure(Treasure.new(:hammer, 50))
23
+ @player.found_treasure(Treasure.new(:hammer, 50))
24
+
25
+ @player.to_s.should == "I'm Larry with health = 150, points = 100, and score = 250."
26
+ end
27
+
28
+ it "increases health by 15 when w00ted" do
29
+ @player.w00t
30
+ @player.health.should == @initial_health + 15
31
+ end
32
+
33
+ it "decreases health by 10 when blammed" do
34
+ @player.blam
35
+ @player.health.should == @initial_health - 10
36
+ end
37
+
38
+ it "computes points as the sum of all treasure points" do
39
+ @player.points.should == 0
40
+
41
+ @player.found_treasure(Treasure.new(:hammer, 50))
42
+
43
+ @player.points.should == 50
44
+
45
+ @player.found_treasure(Treasure.new(:crowbar, 400))
46
+
47
+ @player.points.should == 450
48
+
49
+ @player.found_treasure(Treasure.new(:hammer, 50))
50
+
51
+ @player.points.should == 500
52
+ end
53
+
54
+ it "computes a score as the sum of its health and points" do
55
+ @player.found_treasure(Treasure.new(:hammer, 50))
56
+ @player.found_treasure(Treasure.new(:hammer, 50))
57
+
58
+ @player.score.should == 250
59
+ end
60
+
61
+ it "yields each found treasure and its total points" do
62
+ @player.found_treasure(Treasure.new(:skillet, 100))
63
+ @player.found_treasure(Treasure.new(:skillet, 100))
64
+ @player.found_treasure(Treasure.new(:hammer, 50))
65
+ @player.found_treasure(Treasure.new(:bottle, 5))
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
+
71
+ yielded = []
72
+ @player.each_found_treasure do |treasure|
73
+ yielded << treasure
74
+ end
75
+
76
+ yielded.should == [
77
+ Treasure.new(:skillet, 200),
78
+ Treasure.new(:hammer, 50),
79
+ Treasure.new(:bottle, 25)
80
+ ]
81
+ end
82
+
83
+ it "can be created from a CSV string" do
84
+ player = Player.from_csv("larry,150")
85
+
86
+ player.name.should == "Larry"
87
+ player.health.should == 150
88
+ end
89
+
90
+ context "with a health greater than 100" do
91
+ before do
92
+ @player_name = "popeye"
93
+ @name_length = @player_name.length
94
+ @initial_health = 150
95
+ @player = Player.new(@player_name, @initial_health)
96
+ end
97
+
98
+ it "is strong" do
99
+ @player.should be_strong
100
+ end
101
+ end
102
+
103
+ context "with a health less than or equal to 100" do
104
+ before do
105
+ @player_name = "wimpy"
106
+ @name_length = @player_name.length
107
+ @initial_health = 100
108
+ @player = Player.new(@player_name, @initial_health)
109
+ end
110
+
111
+ it "is wimpy" do
112
+ @player.should_not be_strong
113
+ end
114
+ end
115
+
116
+ context "in a collection of players" do
117
+ before do
118
+ @player1 = Player.new("moe", 100)
119
+ @player2 = Player.new("larry", 200)
120
+ @player3 = Player.new("curly", 300)
121
+
122
+ @players = [@player1, @player2, @player3]
123
+ end
124
+
125
+ it "is sorted by decreasing score" do
126
+ @players.sort.should == [@player3, @player2, @player1]
127
+ end
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,53 @@
1
+ require 'studio_game/treasure_trove'
2
+
3
+ module StudioGame
4
+ describe Treasure do
5
+ before do
6
+ @treasure = Treasure.new(:hammer, 50)
7
+ end
8
+
9
+ it "has a name attribute" do
10
+ @treasure.name.should == :hammer
11
+ end
12
+
13
+ it "has a points attribute" do
14
+ @treasure.points.should == 50
15
+ end
16
+ end
17
+
18
+ describe TreasureTrove do
19
+ it "has six treasures" do
20
+ TreasureTrove::TREASURES.size.should == 6
21
+ end
22
+
23
+ it "has a pie worth 5 points" do
24
+ TreasureTrove::TREASURES[0].should == Treasure.new(:pie, 5)
25
+ end
26
+
27
+ it "has a bottle worth 25 points" do
28
+ TreasureTrove::TREASURES[1].should == Treasure.new(:bottle, 25)
29
+ end
30
+
31
+ it "has a hammer worth 50 points" do
32
+ TreasureTrove::TREASURES[2].should == Treasure.new(:hammer, 50)
33
+ end
34
+
35
+ it "has a skillet worth 100 points" do
36
+ TreasureTrove::TREASURES[3].should == Treasure.new(:skillet, 100)
37
+ end
38
+
39
+ it "has a broomstrick worth 200 points" do
40
+ TreasureTrove::TREASURES[4].should == Treasure.new(:broomstick, 200)
41
+ end
42
+
43
+ it "has a crowbar worth 400 points" do
44
+ TreasureTrove::TREASURES[5].should == Treasure.new(:crowbar, 400)
45
+ end
46
+
47
+ it "returns a random treasure" do
48
+ treasure = TreasureTrove.random
49
+
50
+ TreasureTrove::TREASURES.should include(treasure)
51
+ end
52
+ end
53
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Kevins-Studio-Game
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Kevin Powell
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: This project was created using Pragmatic Studio's Ruby training
31
+ email: kevin.powell@daveramsey.com
32
+ executables:
33
+ - studio_game
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - bin/players.csv
38
+ - bin/studio_game
39
+ - lib/studio_game/auditable.rb
40
+ - lib/studio_game/berserk_player.rb
41
+ - lib/studio_game/clumsy_player.rb
42
+ - lib/studio_game/die.rb
43
+ - lib/studio_game/game.rb
44
+ - lib/studio_game/game_turn.rb
45
+ - lib/studio_game/loaded_die.rb
46
+ - lib/studio_game/playable.rb
47
+ - lib/studio_game/player.rb
48
+ - lib/studio_game/treasure_trove.rb
49
+ - spec/studio_game/berserk_player_spec.rb
50
+ - spec/studio_game/clumsy_player_spec.rb
51
+ - spec/studio_game/game_spec.rb
52
+ - spec/studio_game/player_spec.rb
53
+ - spec/studio_game/treasure_trove_spec.rb
54
+ - LICENSE
55
+ - README
56
+ homepage: http://example.com
57
+ licenses: []
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '1.9'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 1.8.24
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: Created using Pragmatic Studio's Ruby Training Course
80
+ test_files:
81
+ - spec/studio_game/berserk_player_spec.rb
82
+ - spec/studio_game/clumsy_player_spec.rb
83
+ - spec/studio_game/game_spec.rb
84
+ - spec/studio_game/player_spec.rb
85
+ - spec/studio_game/treasure_trove_spec.rb