studio_game_tonig 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 Toni Grigoriu
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
+ Sample project use to learn ruby.
data/bin/players.csv ADDED
@@ -0,0 +1,3 @@
1
+ Alvin,100
2
+ Simon,60
3
+ Theo,125
data/bin/studio_game ADDED
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/studio_game/game'
4
+ require_relative '../lib/studio_game/clumsy_player'
5
+ require_relative '../lib/studio_game/berserk_player'
6
+
7
+ knuckleheads = StudioGame::Game.new("Knuckleheads")
8
+
9
+ default_players_file = File.join(File.dirname(__FILE__), 'players.csv')
10
+
11
+ knuckleheads.load_players(ARGV.shift || default_players_file)
12
+
13
+ klutz = StudioGame::ClumsyPlayer.new("klutz", 105)
14
+ knuckleheads.add_player(klutz)
15
+
16
+ berserker = StudioGame::BerserkPlayer.new("berserker", 50)
17
+ knuckleheads.add_player(berserker)
18
+
19
+ loop do
20
+ puts "\nHow many game rounds? ('quit' to exit)"
21
+ answer = gets.chomp.downcase
22
+
23
+ case answer
24
+ when /^\d+$/
25
+ knuckleheads.play(answer.to_i)
26
+ when "quit", "exit"
27
+ break
28
+ else
29
+ puts "Please enter a number. ('quit' to exit)"
30
+ end
31
+ end
32
+
33
+ knuckleheads.print_stats
34
+
35
+ knuckleheads.save_high_scores
@@ -0,0 +1,9 @@
1
+ module StudioGame
2
+ module Auditable
3
+
4
+ def audit
5
+ puts "Rolled a #{self.number} (#{self.class})"
6
+ end
7
+
8
+ end
9
+ end
@@ -0,0 +1,24 @@
1
+ require_relative 'player'
2
+
3
+ module StudioGame
4
+ class BerserkPlayer < Player
5
+ def initialize(name, health=100)
6
+ super name, health
7
+ @w00ted_count = 0
8
+ @berserk = false
9
+ end
10
+
11
+ def w00t
12
+ super
13
+ @w00ted_count += 1
14
+ end
15
+
16
+ def blam
17
+ berserk? ? w00t : super
18
+ end
19
+
20
+ def berserk?
21
+ @w00ted_count > 5
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,21 @@
1
+ require_relative 'player'
2
+
3
+ module StudioGame
4
+ class ClumsyPlayer < Player
5
+
6
+ attr_reader :boost_factor
7
+
8
+ def initialize(name, health=100, boost_factor=1)
9
+ super name, health
10
+ @boost_factor = boost_factor
11
+ end
12
+
13
+ def found_treasure(treasure)
14
+ super Treasure.new(treasure.name, treasure.points / 2)
15
+ end
16
+
17
+ def w00t
18
+ @boost_factor.times { super }
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ require_relative 'auditable.rb'
2
+
3
+ module StudioGame
4
+ class Die
5
+
6
+ include Auditable
7
+
8
+ attr_reader :number
9
+
10
+ def initialize
11
+ roll
12
+ end
13
+
14
+ def roll
15
+ @number = rand(1..6)
16
+ audit
17
+ @number
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,113 @@
1
+ require_relative 'game_turn'
2
+ require_relative 'treasure_trove'
3
+
4
+ module StudioGame
5
+ class Game
6
+
7
+ attr_reader :title
8
+
9
+ def initialize(title)
10
+ @title = title
11
+ @players = []
12
+ end
13
+
14
+ def load_players(from_file="players.csv")
15
+ File.readlines(from_file).each do |line|
16
+ name, health = line.split(",")
17
+
18
+ add_player(Player.new(name, health.to_i))
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:\n"
25
+
26
+ @players.sort.each do |player|
27
+ if block_given?
28
+ format = yield player
29
+ else
30
+ format = player.format_high_score
31
+ end
32
+
33
+ file.puts(format)
34
+ end
35
+ end
36
+ end
37
+
38
+ def add_player(player)
39
+ @players << player
40
+ end
41
+
42
+ def play(rounds=1)
43
+ puts "There are currently #{@players.size} players in #{title}:\n"
44
+
45
+ @players.each do |player|
46
+ puts player.name
47
+ end
48
+
49
+ treasures = TreasureTrove::TREASURES
50
+
51
+ puts "\nThere are #{treasures.size} treasures to be found:"
52
+
53
+ treasures.each do |treasure|
54
+ puts "A #{treasure.name} is worth #{treasure.points} points"
55
+ end
56
+
57
+ 1.upto(rounds) do |n|
58
+ if block_given?
59
+ break if yield
60
+ end
61
+
62
+ puts "\nRound #{n}"
63
+
64
+ @players.each do |player|
65
+ GameTurn.take_turn(player)
66
+ end
67
+ end
68
+ end
69
+
70
+ def total_points
71
+ @players.reduce(0) do |sum, player|
72
+ sum + player.points
73
+ end
74
+ end
75
+
76
+ def print_stats
77
+ strong, wimpy = @players.partition { |player| player.strong? }
78
+
79
+ puts "\n\nKnuckleheads Statistics:\n\n"
80
+
81
+ puts "#{strong.size} strong players:\n"
82
+
83
+ strong.each do |player|
84
+ puts "#{player.name} (#{player.score})"
85
+ end
86
+
87
+ puts "\n#{wimpy.size} wimpy players:\n"
88
+
89
+ wimpy.each do |player|
90
+ puts "#{player.name} (#{player.score})"
91
+ end
92
+
93
+ sorted_players = @players.sort
94
+
95
+ puts "\nHighest scores:\n"
96
+
97
+ sorted_players.each do |player|
98
+ puts player.format_high_score
99
+ end
100
+
101
+ @players.each do |player|
102
+ puts "\n#{player.name}'s point totals:\n"
103
+ player.each_found_treasure do |treasure|
104
+ puts "- #{treasure.points} total #{treasure.name} points"
105
+ end
106
+ puts "#{player.points} grand total points"
107
+ end
108
+
109
+ puts "\n#{total_points} total points from treasures found"
110
+ end
111
+
112
+ end
113
+ end
@@ -0,0 +1,27 @@
1
+ require_relative 'die'
2
+ # require_relative 'loaded_die'
3
+ require_relative 'treasure_trove'
4
+
5
+ module StudioGame
6
+ module GameTurn
7
+
8
+ def self.take_turn(player)
9
+ # die = LoadedDie.new
10
+ die = Die.new
11
+
12
+ case die.roll
13
+ when 1..2
14
+ player.blam
15
+ when 3..4
16
+ puts "#{player.name} was skipped."
17
+ else
18
+ player.w00t
19
+ end
20
+
21
+ treasure = TreasureTrove.random
22
+
23
+ player.found_treasure(treasure)
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ require_relative 'auditable.rb'
2
+
3
+ module StudioGame
4
+ class LoadedDie
5
+ include Auditable
6
+
7
+ attr_reader :number
8
+
9
+ def roll
10
+ @number = [1, 1, 2, 5, 6, 6].sample
11
+ audit
12
+ @number
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ module StudioGame
2
+ module Playable
3
+
4
+ def blam
5
+ self.health -= 10
6
+ puts "#{name} got blammed!"
7
+ end
8
+
9
+ def w00t
10
+ self.health += 15
11
+ puts "#{name} got w00ted!"
12
+ end
13
+
14
+ def strong?
15
+ health > 100
16
+ end
17
+
18
+ end
19
+ end
@@ -0,0 +1,51 @@
1
+ require_relative 'treasure_trove'
2
+ require_relative 'playable'
3
+
4
+ module StudioGame
5
+ class Player
6
+ include Playable
7
+
8
+ attr_accessor :health
9
+ attr_accessor :name
10
+
11
+ def initialize(name, health=100)
12
+ @name = name.capitalize
13
+ @health = health
14
+ @points = 0
15
+ @found_treasures = Hash.new(0)
16
+ end
17
+
18
+ def to_s
19
+ "I'm #{@name} with a health of #{@health} and a score of #{score}."
20
+ end
21
+
22
+ def score
23
+ @health + points
24
+ end
25
+
26
+ def <=>(other)
27
+ other.score <=> score
28
+ end
29
+
30
+ def found_treasure(treasure)
31
+ @found_treasures[treasure.name] += treasure.points
32
+
33
+ puts "#{@name} found a #{treasure.name} worth #{treasure.points} points."
34
+ end
35
+
36
+ def points
37
+ @found_treasures.values.reduce(0, :+)
38
+ end
39
+
40
+ def each_found_treasure
41
+ @found_treasures.each do |name, points|
42
+ yield Treasure.new(name, points)
43
+ end
44
+ end
45
+
46
+ def format_high_score
47
+ @name.ljust(20, ".") + points.to_s
48
+ end
49
+
50
+ end
51
+ end
@@ -0,0 +1,18 @@
1
+ module StudioGame
2
+ Treasure = Struct.new("Treasure", :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,32 @@
1
+ require 'studio_game/berserk_player'
2
+
3
+ module StudioGame
4
+ describe BerserkPlayer do
5
+
6
+ before do
7
+ $stdout = StringIO.new
8
+ @initial_health = 50
9
+ @player = BerserkPlayer.new("berserker", @initial_health)
10
+ end
11
+
12
+ it "does not go berserk when w00ted up to 5 times" do
13
+ 1.upto(5) { @player.w00t }
14
+
15
+ @player.berserk?.should be_false
16
+ end
17
+
18
+ it "goes berserk when w00ted more than 5 times" do
19
+ 1.upto(6) { @player.w00t }
20
+
21
+ @player.berserk?.should be_true
22
+ end
23
+
24
+ it "gets w00ted instead of blammed when it's gone berserk" do
25
+ 1.upto(6) { @player.w00t }
26
+ 1.upto(2) { @player.blam }
27
+
28
+ @player.health.should == @initial_health + (8 * 15)
29
+ end
30
+
31
+ end
32
+ end
@@ -0,0 +1,52 @@
1
+ require 'studio_game/clumsy_player'
2
+
3
+ module StudioGame
4
+ describe ClumsyPlayer do
5
+ before do
6
+ $stdout = StringIO.new
7
+ @player = ClumsyPlayer.new("klutz")
8
+ end
9
+
10
+ it "only gets half the point value for each treasure" do
11
+ @player.points.should == 0
12
+
13
+ hammer = Treasure.new(:hammer, 50)
14
+ @player.found_treasure(hammer)
15
+ @player.found_treasure(hammer)
16
+ @player.found_treasure(hammer)
17
+
18
+ @player.points.should == 75
19
+
20
+ crowbar = Treasure.new(:crowbar, 400)
21
+ @player.found_treasure(crowbar)
22
+
23
+ @player.points.should == 275
24
+
25
+ yielded = []
26
+ @player.each_found_treasure do |treasure|
27
+ yielded << treasure
28
+ end
29
+
30
+ yielded.should == [Treasure.new(:hammer, 75), Treasure.new(:crowbar, 200)]
31
+ end
32
+
33
+ context "with a boost factor" do
34
+ before do
35
+ @initial_health = 100
36
+ @boost_factor = 5
37
+ @player = ClumsyPlayer.new("klutz", @initial_health, @boost_factor)
38
+ end
39
+
40
+ it "has a boost factor" do
41
+ @player.boost_factor.should == 5
42
+ end
43
+
44
+ it "gets boost factor number of w00ts when w00ted" do
45
+ @player.w00t
46
+
47
+ @player.health.should == @initial_health + (15 * @boost_factor)
48
+ end
49
+ end
50
+
51
+ end
52
+ end
@@ -0,0 +1,68 @@
1
+ require 'studio_game/game'
2
+ require 'studio_game/player'
3
+
4
+ module StudioGame
5
+ describe Game do
6
+
7
+ before do
8
+ $stdout = StringIO.new
9
+
10
+ @game = Game.new("Knuckleheads")
11
+
12
+ @rounds = 3
13
+
14
+ @initial_health = 100
15
+
16
+ @player = Player.new("moe", @initial_health)
17
+
18
+ @game.add_player(@player)
19
+ end
20
+
21
+ it "when a high number is rolled, the player's health is increased by 15" do
22
+ Die.any_instance.stub(:roll).and_return(5)
23
+
24
+ @game.play(@rounds)
25
+
26
+ @player.health.should == @initial_health + 15 * @rounds
27
+ end
28
+
29
+ it "when a medium number is rolled, the player's health is not changed" do
30
+ Die.any_instance.stub(:roll).and_return(3)
31
+
32
+ @game.play(@rounds)
33
+
34
+ @player.health.should == @initial_health
35
+ end
36
+
37
+ it "when a low number is rolled, the player's health is decreased by 10" do
38
+ Die.any_instance.stub(:roll).and_return(1)
39
+
40
+ @game.play(@rounds)
41
+
42
+ @player.health.should == @initial_health - 10 * @rounds
43
+ end
44
+
45
+ it "assigns a treasure for points during a player's turn" do
46
+ @game.play(@rounds)
47
+
48
+ @player.points.should_not be_zero
49
+ end
50
+
51
+ it "computes total points as the sum of all player points" do
52
+ game = Game.new("Knuckleheads")
53
+
54
+ player1 = Player.new("moe")
55
+ player2 = Player.new("larry")
56
+
57
+ game.add_player(player1)
58
+ game.add_player(player2)
59
+
60
+ player1.found_treasure(Treasure.new(:hammer, 50))
61
+ player1.found_treasure(Treasure.new(:hammer, 50))
62
+ player2.found_treasure(Treasure.new(:crowbar, 400))
63
+
64
+ game.total_points.should == 500
65
+ end
66
+
67
+ end
68
+ end
@@ -0,0 +1,128 @@
1
+ require 'studio_game/player'
2
+ require 'studio_game/treasure_trove'
3
+
4
+ module StudioGame
5
+ describe Player do
6
+
7
+ before do
8
+ $stdout = StringIO.new # suppress method output
9
+ @initial_health = 100
10
+
11
+ @player = Player.new("anakin", @initial_health)
12
+ end
13
+
14
+ it "has a capitalized name" do
15
+ @player.name.should == "Anakin"
16
+ end
17
+
18
+ it "has an initial health" do
19
+ @player.health.should == @initial_health
20
+ end
21
+
22
+ it "has a string representation" do
23
+ @player.to_s.should == "I'm Anakin with a health of 100 and a score of #{@player.score}."
24
+ end
25
+
26
+ it "computes a score as the sum of its health and points" do
27
+ @player.found_treasure(Treasure.new(:hammer, 50))
28
+ @player.found_treasure(Treasure.new(:hammer, 50))
29
+
30
+ @player.score.should == @initial_health + 50 + 50
31
+
32
+ @player.to_s.should == "I'm Anakin with a health of 100 and a score of #{@initial_health + 50 + 50}."
33
+ end
34
+
35
+ it "increases health by 15 when w00ted" do
36
+ @player.w00t
37
+
38
+ @player.health.should == @initial_health + 15
39
+ end
40
+
41
+ it "decreases health by 10 when blammed" do
42
+ @player.blam
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 "created with default health" do
85
+ before do
86
+ @player = Player.new("Yoda")
87
+ end
88
+
89
+ it "has a health of 100" do
90
+ @player.health.should == 100
91
+ end
92
+ end
93
+
94
+ context "created with an initial health greater than 100" do
95
+ before do
96
+ @player = Player.new("Yoda", 150)
97
+ end
98
+
99
+ it "is a strong player" do
100
+ @player.should be_strong # @player.strong?.should be_true
101
+ end
102
+ end
103
+
104
+ context "created with an initial health of 100" do
105
+ before do
106
+ @player = Player.new("Obi", 100)
107
+ end
108
+
109
+ it "is a wimpy player" do
110
+ @player.should_not be_strong
111
+ end
112
+ end
113
+
114
+ context "in a collection of players" do
115
+ before do
116
+ @player1 = Player.new("moe", 100)
117
+ @player2 = Player.new("larry", 200)
118
+ @player3 = Player.new("curly", 300)
119
+
120
+ @players = [@player1, @player2, @player3]
121
+ end
122
+
123
+ it "is sorted by decreasing score" do
124
+ @players.sort.should == [@player3, @player2, @player1]
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,57 @@
1
+ require 'studio_game/treasure_trove'
2
+
3
+ module StudioGame
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
+
56
+ end
57
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: studio_game_tonig
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Toni Grigoriu
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-24 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: Sample project use to learn ruby.
31
+ email: nospam@grigoriu.ro
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://online.pragmaticstudio.com/courses/ruby
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.23
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: Sample project use to learn ruby.
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