reems_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,21 @@
1
+ Copyright (c) 2012 The Pragmatic Studio
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ - You may not use this Software in other training contexts.
11
+
12
+ - The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,6 @@
1
+ This is an example application used in The Pragmatic Studio's
2
+ Ruby Programming course, as described at
3
+
4
+ http://pragmaticstudio.com
5
+
6
+ This code is Copyright 2012 The Pragmatic Studio. See the LICENSE file.
@@ -0,0 +1,3 @@
1
+ Alvin,100
2
+ Simon,75
3
+ Theo,125
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/reems_game/player'
4
+ require_relative '../lib/reems_game/game'
5
+ require_relative '../lib/reems_game/clumsy_player'
6
+ require_relative '../lib/reems_game/berserk_player'
7
+
8
+ knuckleheads = ReemsGame::Game.new("Knuckleheads")
9
+
10
+ default_player_file = File.join(File.dirname(__FILE__), 'players.csv')
11
+ knuckleheads.load_players(ARGV.shift || default_player_file)
12
+
13
+ player4 = ReemsGame::ClumsyPlayer.new("klutz", 105)
14
+ player5 = ReemsGame::BerserkPlayer.new("berserk", 105)
15
+ knuckleheads.add_player(player4)
16
+ knuckleheads.add_player(player5)
17
+
18
+
19
+ loop do
20
+ puts "\nHow many rounds do you want to play?"
21
+ answer = gets.chomp
22
+
23
+ case answer
24
+ when /^\d+$/
25
+ knuckleheads.play(answer.to_i) do
26
+ knuckleheads.total_game_points >= 2000
27
+ end
28
+ when 'quit', 'exit'
29
+ knuckleheads.print_stats
30
+ break
31
+ else
32
+ puts "please enter a number or quit"
33
+ end
34
+ end
35
+
36
+ knuckleheads.save_high_scores
37
+
@@ -0,0 +1,7 @@
1
+ module ReemsGame
2
+ module Auditable
3
+ def audit
4
+ puts "Rolled a #{self.number}, (#{self.class})"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,29 @@
1
+ require_relative 'player'
2
+
3
+ module ReemsGame
4
+ class BerserkPlayer < Player
5
+
6
+ def initialize(name, health = 100)
7
+ super(name, health)
8
+ @woot_count = 0
9
+ end
10
+
11
+ def berserk?
12
+ @woot_count > 5
13
+ end
14
+
15
+ def w00t
16
+ super
17
+ @woot_count += 1
18
+ puts "Berserker is beserk!" if berserk?
19
+ end
20
+
21
+ def blam
22
+ if berserk?
23
+ w00t
24
+ else
25
+ super
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,24 @@
1
+ require_relative 'player'
2
+ require_relative 'treasure_trove'
3
+
4
+ module ReemsGame
5
+ class ClumsyPlayer < Player
6
+
7
+ attr_reader :boost_factor
8
+
9
+ def initialize(name, health = 100, boost_factor = 1)
10
+ super(name, health)
11
+ @boost_factor = boost_factor
12
+ end
13
+
14
+ def w00t
15
+ @boost_factor.times { super }
16
+ end
17
+
18
+ def found_treasure(treasure)
19
+ treasure = Treasure.new(treasure.name, treasure.points / 2.0)
20
+ super(treasure)
21
+ end
22
+
23
+ end
24
+ end
@@ -0,0 +1,18 @@
1
+ require_relative 'auditable'
2
+
3
+ module ReemsGame
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
+ require_relative 'player'
2
+ require_relative 'die'
3
+ require_relative 'game_turn'
4
+ require_relative 'treasure_trove'
5
+
6
+ module ReemsGame
7
+ class Game
8
+
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 save_high_scores(to_file = "high_scores.txt")
23
+ File.open(to_file, "w") do |file|
24
+ file.puts "#{title} High Scores"
25
+ @players.sort.each do |player|
26
+ file.puts player.formatted_info
27
+ end
28
+ end
29
+ end
30
+
31
+ def add_player(player)
32
+ @players.push(player)
33
+ end
34
+
35
+ def play(rounds)
36
+
37
+ puts "\nNew Game"
38
+ puts "There are #{@players.size} players in #{@title}:"
39
+
40
+ @players.each do |player|
41
+ puts player
42
+ end
43
+
44
+ treasures = TreasureTrove::TREASURES
45
+ puts "\nThere are #{treasures.size} treasures available"
46
+
47
+ treasures.each do |treasure|
48
+ puts "#{treasure.name} worth #{treasure.points} points"
49
+ end
50
+
51
+
52
+ 1.upto(rounds) do |round|
53
+ if block_given?
54
+ break if yield
55
+ end
56
+ puts "\nRound #{round}"
57
+ @players.each do |player|
58
+ GameTurn.take_turn(player)
59
+ puts player
60
+ end
61
+ end
62
+
63
+ end
64
+
65
+ def total_game_points
66
+ @players.sort.reduce(0) do |sum, player|
67
+ sum + player.points
68
+ end
69
+ end
70
+
71
+ def print_stats
72
+
73
+ puts "\n#{total_game_points} Treasure Points found"
74
+
75
+ strong, weak = @players.partition{|player| player.strong?}
76
+
77
+ puts "\n#{strong.size} Strong Players"
78
+ strong.each do |player|
79
+ puts "#{player.name}: #{player.health}"
80
+ end
81
+
82
+
83
+ puts "\n#{weak.size} Weak Players"
84
+ weak.each do |player|
85
+ puts "#{player.name}: #{player.health}"
86
+ end
87
+
88
+
89
+ puts "\n#{title} High Scores"
90
+ @players.sort.each do |player|
91
+ puts player.formatted_info
92
+ end
93
+
94
+ puts "\n#{title} Treasure Points"
95
+ @players.sort.each do |player|
96
+ formatted_name = player.name.ljust(20, '.')
97
+ puts "#{formatted_name} #{player.points}"
98
+ end
99
+
100
+ @players.each do |player|
101
+ puts "\n#{player.name}'s Treasure breakdown"
102
+ player.each_found_treasure do |treasure|
103
+ puts "Treasure: #{treasure.name}, Points: #{treasure.points}"
104
+ end
105
+ end
106
+
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,23 @@
1
+ require_relative 'treasure_trove'
2
+ require_relative 'loaded_die'
3
+
4
+ module ReemsGame
5
+ module GameTurn
6
+ def self.take_turn(player)
7
+ number_rolled = Die.new.roll
8
+
9
+ case number_rolled
10
+ when 1..2
11
+ player.blam
12
+ when 3..4
13
+ puts "#{player.name} was skipped"
14
+ else
15
+ player.w00t
16
+ end
17
+
18
+ treasure = TreasureTrove.random
19
+ player.found_treasure(treasure)
20
+ puts "#{player.name} found a #{treasure.name} worth #{treasure.points} points"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,17 @@
1
+ require_relative 'auditable'
2
+
3
+ module ReemsGame
4
+ class LoadedDie
5
+
6
+ include Auditable
7
+ attr_reader :number
8
+
9
+ def roll
10
+ numbers = [1, 1, 3, 5, 6, 6]
11
+ @number = numbers.sample
12
+ audit
13
+ @number
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module ReemsGame
2
+ module Playable
3
+ def blam
4
+ self.health -= 10
5
+ puts "#{self.name} got blammed!"
6
+ end
7
+
8
+ def w00t
9
+ self.health += 15
10
+ puts "#{self.name} got w00ted!"
11
+ end
12
+
13
+ def strong?
14
+ self.health > 100
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,54 @@
1
+ require_relative 'treasure_trove'
2
+ require_relative 'playable'
3
+
4
+ module ReemsGame
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.split(",")
17
+ new(name, Integer(health))
18
+ end
19
+
20
+ def found_treasure(treasure)
21
+ @found_treasures[treasure.name] += treasure.points
22
+ end
23
+
24
+ def each_found_treasure
25
+ @found_treasures.each do |name, points|
26
+ treasure = Treasure.new(name, points)
27
+ yield treasure
28
+ end
29
+ end
30
+
31
+ def points
32
+ @found_treasures.values.reduce(0, :+)
33
+ end
34
+
35
+ def to_s
36
+ "I'm #{@name} with a health = #{@health}, points = #{points} and a score of #{score}."
37
+ end
38
+
39
+ def formatted_info
40
+ formatted_name = self.name.ljust(20, '.')
41
+ "#{formatted_name} #{score}"
42
+ end
43
+
44
+ def score
45
+ @health + points
46
+ end
47
+
48
+ def <=>(other_player)
49
+ other_player.score <=> score
50
+ end
51
+
52
+ end
53
+
54
+ end
@@ -0,0 +1,20 @@
1
+ module ReemsGame
2
+ Treasure = Struct.new(:name, :points)
3
+
4
+ module TreasureTrove
5
+
6
+ TREASURES = [
7
+ Treasure.new(:pie, 5),
8
+ Treasure.new(:bottle, 25),
9
+ Treasure.new(:hammer, 50),
10
+ Treasure.new(:skillet, 100),
11
+ Treasure.new(:broomstick, 200),
12
+ Treasure.new(:crowbar, 400)
13
+ ]
14
+
15
+ def self.random
16
+ TREASURES.sample
17
+ end
18
+
19
+ end
20
+ end
@@ -0,0 +1,31 @@
1
+ require 'reems_game/berserk_player'
2
+
3
+ module ReemsGame
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
+
30
+ end
31
+ end
@@ -0,0 +1,50 @@
1
+ require 'reems_game/clumsy_player'
2
+
3
+ module ReemsGame
4
+ describe ClumsyPlayer do
5
+ before do
6
+ @player = ClumsyPlayer.new("klutz")
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
+ context "with a boost factor" do
33
+ before do
34
+ @initial_health = 100
35
+ @boost_factor = 5
36
+ @player = ClumsyPlayer.new("klutz", @initial_health, @boost_factor)
37
+ end
38
+
39
+ it "has a boost factor" do
40
+ @player.boost_factor.should == 5
41
+ end
42
+
43
+ it "gets boost factor number of w00ts when w00ted" do
44
+ @player.w00t
45
+ @player.health.should == @initial_health + (15 * @boost_factor)
46
+ end
47
+ end
48
+
49
+ end
50
+ end
@@ -0,0 +1,48 @@
1
+ require 'reems_game/game'
2
+ require 'reems_game/die'
3
+
4
+ module ReemsGame
5
+ describe Game do
6
+ before do
7
+ @game = Game.new("Thunder")
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 if a high number is rolled" do
16
+ Die.any_instance.stub(:roll).and_return(5)
17
+
18
+ @game.play(2)
19
+ @player.health.should == @initial_health + (15 * 2)
20
+ end
21
+
22
+ it "does not change player's health for medium number rolled" do
23
+ Die.any_instance.stub(:roll).and_return(3)
24
+
25
+ @game.play(2)
26
+ @player.health.should == @initial_health
27
+ end
28
+
29
+ it "blams the player if a low number is rolled" do
30
+ Die.any_instance.stub(:roll).and_return(2)
31
+
32
+ @game.play(2)
33
+ @player.health.should == @initial_health - (10 * 2)
34
+ end
35
+
36
+ it "assigns a treasure for points during a player's turn" do
37
+ game = Game.new("Knuckleheads")
38
+ player = Player.new("moe")
39
+
40
+ game.add_player(player)
41
+
42
+ game.play(1)
43
+
44
+ player.points.should_not be_zero
45
+ end
46
+
47
+ end
48
+ end
@@ -0,0 +1,139 @@
1
+ require 'reems_game/player'
2
+ require 'reems_game/treasure_trove'
3
+
4
+ module ReemsGame
5
+ describe Player do
6
+
7
+ before do
8
+ $stdout = StringIO.new # to suppress puts messages of methods from being displayed in the rspec console(i.e. w00t and blam)
9
+ @initial_health = 150
10
+ @player = Player.new("larry", @initial_health)
11
+ end
12
+
13
+ it "has a capitalized name" do
14
+ @player.name.should == "Larry"
15
+ end
16
+ it "has an initial health" do
17
+ @player.health.should == @initial_health
18
+ end
19
+
20
+ it "can be created from a CSV string" do
21
+ player = Player.from_csv("larry,150")
22
+
23
+ player.name.should == "Larry"
24
+ player.health.should == 150
25
+ end
26
+
27
+
28
+ it "has a string representation" do
29
+ @player = Player.new("larry", @initial_health)
30
+ @player.found_treasure(Treasure.new(:hammer, 50))
31
+ @player.found_treasure(Treasure.new(:hammer, 50))
32
+
33
+ @player.to_s.should == "I'm Larry with a health = 150, points = 100 and a score of 250."
34
+ end
35
+
36
+ it "computes a score as the sum of its health and points" do
37
+ @player = Player.new("larry", @initial_health)
38
+ @player.found_treasure(Treasure.new(:hammer, 50))
39
+ @player.found_treasure(Treasure.new(:hammer, 50))
40
+
41
+
42
+ @player.score.should == 250
43
+ end
44
+
45
+ it "increases health by 15 when w00ted" do
46
+ @player.w00t
47
+
48
+ @player.health.should == @initial_health + 15
49
+ end
50
+
51
+ it "decreases health by 10 when blammed" do
52
+ @player.blam
53
+
54
+ @player.health.should == @initial_health - 10
55
+ end
56
+
57
+ context "player starting with an initial health of 150" do
58
+ before do
59
+ @initial_health = 150
60
+ @player = Player.new("larry", @initial_health)
61
+ end
62
+ it "is strong" do
63
+ @player.should be_strong #.strong?.should_be == true
64
+ end
65
+ end
66
+
67
+ context "player starting with an initial health of 100" do
68
+ before do
69
+ @initial_health = 100
70
+ @player = Player.new("larry", @initial_health)
71
+ end
72
+
73
+ it "is weak" do
74
+ @player.should_not be_strong
75
+ end
76
+ end
77
+
78
+ context "in a collection of players" do
79
+ before do
80
+ @p1 = Player.new("moe", 100)
81
+ @p2 = Player.new("curly", 200)
82
+ @p3 = Player.new("larry", 300)
83
+
84
+ @players = [@p1, @p2, @p3]
85
+ end
86
+
87
+
88
+ it "is sorted by decreasing order" do
89
+ @players.sort.should == [@p3, @p2, @p1]
90
+ end
91
+ end
92
+
93
+ context "treasure hunting" do
94
+ before do
95
+ @player = Player.new("moe", 100)
96
+ end
97
+
98
+ it "computes points as the sum of all treasure points" do
99
+ @player.points.should == 0
100
+
101
+ @player.found_treasure(Treasure.new(:hammer, 50))
102
+
103
+ @player.points.should == 50
104
+
105
+ @player.found_treasure(Treasure.new(:crowbar, 400))
106
+
107
+ @player.points.should == 450
108
+
109
+ @player.found_treasure(Treasure.new(:hammer, 50))
110
+
111
+ @player.points.should == 500
112
+ end
113
+
114
+ it "yields each found treasure and its total points" do
115
+
116
+ @player.found_treasure(Treasure.new(:skillet, 100))
117
+ @player.found_treasure(Treasure.new(:skillet, 100))
118
+ @player.found_treasure(Treasure.new(:hammer, 50))
119
+ @player.found_treasure(Treasure.new(:bottle, 5))
120
+ @player.found_treasure(Treasure.new(:bottle, 5))
121
+ @player.found_treasure(Treasure.new(:bottle, 5))
122
+ @player.found_treasure(Treasure.new(:bottle, 5))
123
+ @player.found_treasure(Treasure.new(:bottle, 5))
124
+
125
+ yielded = []
126
+ @player.each_found_treasure do |treasure|
127
+ yielded << treasure
128
+ end
129
+
130
+ yielded.should == [
131
+ Treasure.new(:skillet, 200),
132
+ Treasure.new(:hammer, 50),
133
+ Treasure.new(:bottle, 25)
134
+ ]
135
+ end
136
+ end
137
+
138
+ end
139
+ end
@@ -0,0 +1,51 @@
1
+ require 'reems_game/treasure_trove'
2
+
3
+ module ReemsGame
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
+ end
51
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reems_game
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Kareem Grant
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-28 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 is an example application used in The Pragmatic Studio's \nRuby
31
+ Programming course, as described at\n\n http://pragmaticstudio.com\n\nThis code
32
+ is Copyright 2012 The Pragmatic Studio. See the LICENSE file."
33
+ email: kareem@getuserwise.com
34
+ executables:
35
+ - reems_game
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - bin/players.csv
40
+ - bin/reems_game
41
+ - lib/reems_game/auditable.rb
42
+ - lib/reems_game/berserk_player.rb
43
+ - lib/reems_game/clumsy_player.rb
44
+ - lib/reems_game/die.rb
45
+ - lib/reems_game/game.rb
46
+ - lib/reems_game/game_turn.rb
47
+ - lib/reems_game/loaded_die.rb
48
+ - lib/reems_game/playable.rb
49
+ - lib/reems_game/player.rb
50
+ - lib/reems_game/treasure_trove.rb
51
+ - spec/reems_game/berserk_player_spec.rb
52
+ - spec/reems_game/clumsy_player_spec.rb
53
+ - spec/reems_game/game_spec.rb
54
+ - spec/reems_game/player_spec.rb
55
+ - spec/reems_game/treasure_trove_spec.rb
56
+ - LICENSE
57
+ - README
58
+ homepage: http://getuserwise.com
59
+ licenses: []
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '1.9'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubyforge_project:
78
+ rubygems_version: 1.8.25
79
+ signing_key:
80
+ specification_version: 3
81
+ summary: Pragmatic Studios Ruby course gem
82
+ test_files:
83
+ - spec/reems_game/berserk_player_spec.rb
84
+ - spec/reems_game/clumsy_player_spec.rb
85
+ - spec/reems_game/game_spec.rb
86
+ - spec/reems_game/player_spec.rb
87
+ - spec/reems_game/treasure_trove_spec.rb
88
+ has_rdoc: