freakwincy_studio_game 0.01

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 Alex Lawani
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
+ My first Ruby gem- a simple game that assigns points based on die rolls and treasures found
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,33 @@
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/beserk_player'
6
+
7
+ knuckleheads = StudioGame::Game.new("Knuckleheads")
8
+ default_player_file = File.join(File.dirname(__FILE__), 'players.csv')
9
+ knuckleheads.load_players(ARGV.shift || default_player_file)
10
+ clumsy_klutz = StudioGame::ClumsyPlayer.new("klutz", 105)
11
+ knuckleheads.add_player(clumsy_klutz)
12
+ beserker = StudioGame::BeserkPlayer.new("beserker", 50)
13
+ knuckleheads.add_player(beserker)
14
+
15
+ loop do
16
+ puts "\nHow many game rounds? ('quit' to exit)"
17
+ answer = gets.chomp.downcase
18
+
19
+ case answer
20
+ when /^\d+$/
21
+ knuckleheads.play(answer.to_i) # do
22
+ # knuckleheads.total_points >= 2000
23
+ # end
24
+ when 'quit', 'exit'
25
+ knuckleheads.print_stats
26
+ break
27
+ else
28
+ puts "\nPlease enter a number or 'quit'> "
29
+ end
30
+ end
31
+
32
+
33
+ knuckleheads.save_high_scores()
@@ -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,38 @@
1
+ require_relative 'player'
2
+ require_relative 'treasure_trove'
3
+
4
+ module StudioGame
5
+ class BeserkPlayer < Player
6
+ def initialize(name, health=100)
7
+ super(name, health)
8
+ @woot_count = 0
9
+ end
10
+
11
+ def beserk?
12
+ @woot_count > 5
13
+ end
14
+
15
+ def wOOt
16
+ super
17
+ @woot_count += 1
18
+ if beserk? then
19
+ puts "#{@name} is beserk!"
20
+ end
21
+ end
22
+
23
+ def blam
24
+ if beserk? then
25
+ wOOt
26
+ else
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+
33
+ if __FILE__ == $0
34
+ beserker = BeserkPlayer.new("berserker", 50)
35
+ 6.times { beserker.wOOt }
36
+ 2.times { beserker.blam }
37
+ puts beserker.health
38
+ end
@@ -0,0 +1,37 @@
1
+ require_relative 'player'
2
+ require_relative 'treasure_trove'
3
+
4
+ module StudioGame
5
+ class ClumsyPlayer < Player
6
+ def initialize(name, health=100, boost=10)
7
+ super(name, health)
8
+ @boost = boost
9
+ end
10
+
11
+ def found_treasure(treasure)
12
+ bootleg_treasure = Treasure.new(treasure.name, treasure.points/2)
13
+ super(bootleg_treasure)
14
+ end
15
+
16
+ def wOOt
17
+ @boost.times { super }
18
+ end
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
@@ -0,0 +1,19 @@
1
+ require_relative 'auditable'
2
+
3
+ module StudioGame
4
+ class Die
5
+ include Auditable
6
+
7
+ attr_accessor :number
8
+
9
+ def initialize
10
+ roll
11
+ end
12
+
13
+ def roll
14
+ @number = rand(1..6)
15
+ audit
16
+ return @number
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,108 @@
1
+ require_relative 'game_turn'
2
+ require_relative 'treasure_trove'
3
+ require 'csv'
4
+
5
+ module StudioGame
6
+ class Game
7
+ attr_reader :title
8
+ def initialize(title)
9
+ @title = title
10
+ @players = []
11
+ end
12
+
13
+ def add_player(player)
14
+ @players.push(player)
15
+ end
16
+
17
+ def play(rounds)
18
+ puts "There are #{@players.size} players in #{title}:"
19
+ puts @players
20
+ treasures = TreasureTrove::TREASURES
21
+ puts "There are #{treasures.size} treasures to be found"
22
+ treasures.each do |treasure|
23
+ puts "A #{treasure.name} is worth #{treasure.points}"
24
+ end
25
+
26
+ 1.upto(rounds) do |round|
27
+ if block_given?
28
+ break if yield
29
+ end
30
+
31
+ puts "\nRound #{round}:\n"
32
+ @players.each do |player_hater|
33
+ GameTurn.take_turn(player_hater)
34
+ puts player_hater
35
+ end
36
+ end
37
+ end
38
+
39
+ def load_players(players_file)
40
+ CSV.foreach(players_file) do |name,health|
41
+ add_player(Player.from_csv(name, health.to_i))
42
+ end
43
+ end
44
+
45
+ def high_score_entry(player_obj)
46
+ formatted_name = player_obj.name.ljust(20, '.')
47
+ return "#{formatted_name} #{player_obj.score}"
48
+ end
49
+
50
+ def save_high_scores(scoresheet='high_scores.txt')
51
+ File.open(scoresheet, 'w') do |f|
52
+ f.puts "#{@title}'s high scores:\n"
53
+ @players.sort.each do |player|
54
+ f.puts high_score_entry(player)
55
+ end
56
+ end
57
+ end
58
+
59
+ def print_stats
60
+ strong, wimpy = @players.partition { |player| player.strong? }
61
+
62
+ puts "\n#{@title} Statistics:"
63
+
64
+ puts "\n#{strong.count} strong players:\n"
65
+ strong.each do |s|
66
+ print_name_and_health(s)
67
+ end
68
+
69
+ puts "\n#{wimpy.count} wimpy players:\n"
70
+
71
+ wimpy.each do |w|
72
+ print_name_and_health(w)
73
+ end
74
+
75
+ # sorted_players = @players.sort { |a, b| b.score <=> a.score }
76
+
77
+ puts "\n#{@title} high scores:"
78
+ @players.sort.each do |sp|
79
+ puts high_score_entry(sp)
80
+ end
81
+
82
+ @players.each do |player|
83
+ puts "\n#{player.name}'s point totals:"
84
+ player.each_found_treasure do |treasure|
85
+ puts "#{treasure.points} total #{treasure.name} points"
86
+ end
87
+
88
+ puts "\n#{player.points} grand total points"
89
+ end
90
+
91
+ puts "\nTotal treasure points found was: #{total_points}"
92
+ end
93
+
94
+ def total_points
95
+
96
+ #overall_points = 0
97
+ #@players.each do |player|
98
+ #overall_points += player.points
99
+ #end
100
+ #overall_points
101
+ @players.reduce(0) { |sum, player| sum + player.points }
102
+ end
103
+
104
+ def print_name_and_health(player_obj)
105
+ puts "#{player_obj.name} (#{player_obj.health})"
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,24 @@
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_obj = LoadedDie.new
10
+ die_obj = Die.new
11
+ number_rolled = die_obj.roll
12
+ case number_rolled
13
+ when 1..2 then
14
+ player.blam
15
+ when 3..4 then
16
+ puts "#{player.name} was skipped"
17
+ else
18
+ player.wOOt
19
+ end
20
+ treasure = TreasureTrove.random
21
+ player.found_treasure(treasure)
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,15 @@
1
+ require_relative 'auditable'
2
+
3
+ module StudioGame
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,17 @@
1
+ module StudioGame
2
+ module Playable
3
+ def blam
4
+ self.health -= 10
5
+ puts "#{self.name} got blammed!"
6
+ end
7
+
8
+ def wOOt
9
+ self.health += 15
10
+ puts "#{self.name} got wOOted!"
11
+ end
12
+
13
+ def strong?
14
+ self.health > 100
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,57 @@
1
+ require_relative 'playable'
2
+
3
+ module StudioGame
4
+ class Player
5
+ include Playable
6
+ attr_accessor :health
7
+ attr_accessor :name
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 to_s
16
+ "I'm #{@name} with health = #{@health}, points = #{points}, and score = #{score}."
17
+ end
18
+
19
+ def found_treasure(treasure_obj)
20
+ @found_treasures[treasure_obj.name] += treasure_obj.points
21
+ puts "#{@name} found a #{treasure_obj.name} worth #{treasure_obj.points} points"
22
+ puts "#{@name}'s treasures: #{@found_treasures}"
23
+ end
24
+
25
+ def self.from_csv(name, health)
26
+ self.new(name, Integer(health))
27
+ end
28
+
29
+ def each_found_treasure
30
+ @found_treasures.each do |name, points|
31
+ yield Treasure.new(name, points)
32
+ end
33
+ end
34
+
35
+ def points
36
+ @found_treasures.values.reduce(0, :+)
37
+ end
38
+
39
+ def score
40
+ @health + points
41
+ end
42
+
43
+ def <=>(other)
44
+ other.score <=> score
45
+ end
46
+ end
47
+ end
48
+
49
+ if __FILE__ == $0
50
+ player = Player.new("moe")
51
+ puts player.name
52
+ puts player.health
53
+ player.wOOt
54
+ puts player.health
55
+ player.blam
56
+ puts player.health
57
+ end
@@ -0,0 +1,11 @@
1
+ module StudioGame
2
+ Treasure = Struct.new(:name, :points)
3
+
4
+ module TreasureTrove
5
+ TREASURES = [ Treasure.new(:pie, 5), Treasure.new(:bottle, 25), Treasure.new(:hammer, 50), Treasure.new(:skillet, 100), Treasure.new(:broomstick, 200), Treasure.new(:crowbar, 400) ]
6
+
7
+ def self.random
8
+ TREASURES.sample
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,27 @@
1
+ require 'studio_game/beserk_player'
2
+
3
+ module StudioGame
4
+ describe BeserkPlayer do
5
+
6
+ before do
7
+ @initial_health = 50
8
+ @player = BeserkPlayer.new("beserker", @initial_health)
9
+ end
10
+
11
+ it "does not go beserk when wOOted up to 5 times" do
12
+ 1.upto(5) { @player.wOOt }
13
+ @player.beserk?.should be_false
14
+ end
15
+
16
+ it "goes beserk when wOOted more than 5 times" do
17
+ 1.upto(6) { @player.wOOt }
18
+ @player.beserk?.should be_true
19
+ end
20
+
21
+ it "gets wOOted instead of blammed when it's gone beserk" do
22
+ 1.upto(6) { @player.wOOt }
23
+ 1.upto(2) { @player.blam }
24
+ @player.health.should == @initial_health + (8 * 15)
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,51 @@
1
+ require 'studio_game/clumsy_player'
2
+
3
+ module StudioGame
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 = 5
36
+ @player = ClumsyPlayer.new("klutz", @initial_health, @boost)
37
+ end
38
+
39
+ # it "has a boost factor" do
40
+ # @player.boost.should == 5
41
+ # end
42
+
43
+ it "gets boost factor number of wOOts when wOOted" do
44
+ @player.wOOt
45
+
46
+ @player.health.should == @initial_health + (15 * @boost)
47
+ end
48
+ end
49
+
50
+ end
51
+ end
@@ -0,0 +1,70 @@
1
+ require 'studio_game/game'
2
+
3
+ module StudioGame
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
+ @rounds = 2
12
+
13
+ @game.add_player(@player)
14
+ end
15
+
16
+ it "wOOts the player if a high number is rolled" do
17
+ Die.any_instance.stub(:roll).and_return(5)
18
+
19
+ @game.play(@rounds)
20
+
21
+ @player.health.should == @initial_health + (15*@rounds)
22
+ end
23
+
24
+ it "leaves the players' health unchanged if a medium number is rolled" do
25
+ Die.any_instance.stub(:roll).and_return(3)
26
+
27
+ @game.play(@rounds)
28
+
29
+ @player.health.should == @initial_health
30
+ end
31
+
32
+ it "blams a player if a medium number is rolled" do
33
+ Die.any_instance.stub(:roll).and_return(1)
34
+
35
+ @game.play(@rounds)
36
+
37
+ @player.health.should == @initial_health - (10*@rounds)
38
+ end
39
+
40
+ it "assigns a treasure for points during a player's turn" do
41
+ game = Game.new("Knuckleheads")
42
+ player = Player.new("moe")
43
+
44
+ game.add_player(player)
45
+
46
+ game.play(1)
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
+ end
67
+ end
68
+
69
+ # Die.any_instance.stub(:roll).and_return(5)
70
+ # @initial_health += 15
@@ -0,0 +1,126 @@
1
+ require 'studio_game/player'
2
+ require 'studio_game/treasure_trove'
3
+
4
+ module StudioGame
5
+ describe Player do
6
+
7
+ before(:each) do
8
+ @initial_health = 150
9
+ @player = Player.new("larry", @initial_health)
10
+ @score = @player.score
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 "computes a score as the sum of its health and points" do
29
+ @player.found_treasure(Treasure.new(:hammer, 50))
30
+ @player.found_treasure(Treasure.new(:hammer, 50))
31
+
32
+ @player.score.should == 250
33
+ end
34
+
35
+ it "increases health by 15 when wOOted" do
36
+ @player.wOOt
37
+ @player.score.should == @score + 15
38
+ end
39
+
40
+ it "decreases health by 10 when blammed" do
41
+ @player.blam
42
+ @player.score.should == @score - 10
43
+ end
44
+
45
+ it "computes points as the sum of all treasure points" do
46
+ @player.points.should == 0
47
+
48
+ @player.found_treasure(Treasure.new(:hammer, 50))
49
+
50
+ @player.points.should == 50
51
+
52
+ @player.found_treasure(Treasure.new(:crowbar, 400))
53
+
54
+ @player.points.should == 450
55
+
56
+ @player.found_treasure(Treasure.new(:hammer, 50))
57
+
58
+ @player.points.should == 500
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
+ # @initial_health = 150
93
+ # @player = Player.new("larry", @initial_health)
94
+ # end
95
+
96
+ it "is strong" do
97
+ @player.should be_strong
98
+ end
99
+ end
100
+
101
+ context "with a health less than or equal to 100" do
102
+ before do
103
+ @initial_health = 100
104
+ @player = Player.new("larry", @initial_health)
105
+ end
106
+
107
+ it "is strong" do
108
+ @player.should_not be_strong
109
+ end
110
+ end
111
+
112
+ context "in a collection of players" do
113
+ before do
114
+ @player1 = Player.new("moe", 100)
115
+ @player2 = Player.new("larry", 200)
116
+ @player3 = Player.new("curly", 300)
117
+
118
+ @players = [@player1, @player2, @player3]
119
+ end
120
+
121
+ it "is sorted by decreasing score" do
122
+ @players.sort.should == [@player3, @player2, @player1]
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,56 @@
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
+ TreasureTrove::TREASURES.should include(treasure)
53
+ end
54
+
55
+ end
56
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: freakwincy_studio_game
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.01'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alex Lawani
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-12 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: ! 'My first Ruby gem- a simple game that assigns points based on die
31
+ rolls and treasures found
32
+
33
+ '
34
+ email: cripplingd@gmail.com
35
+ executables:
36
+ - studio_game
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - bin/players.csv
41
+ - bin/studio_game
42
+ - lib/studio_game/beserk_player.rb
43
+ - lib/studio_game/auditable.rb
44
+ - lib/studio_game/game_turn.rb
45
+ - lib/studio_game/game.rb
46
+ - lib/studio_game/clumsy_player.rb
47
+ - lib/studio_game/die.rb
48
+ - lib/studio_game/loaded_die.rb
49
+ - lib/studio_game/player.rb
50
+ - lib/studio_game/playable.rb
51
+ - lib/studio_game/treasure_trove.rb
52
+ - spec/studio_game/treasure_trove_spec.rb
53
+ - spec/studio_game/game_spec.rb
54
+ - spec/studio_game/clumsy_player_spec.rb
55
+ - spec/studio_game/player_spec.rb
56
+ - spec/studio_game/beserk_player_spec.rb
57
+ - LICENSE
58
+ - README
59
+ homepage: http://www.softwarelackey.com
60
+ licenses: []
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '1.9'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 1.8.24
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: My first Ruby gem. Yay!
83
+ test_files:
84
+ - spec/studio_game/treasure_trove_spec.rb
85
+ - spec/studio_game/game_spec.rb
86
+ - spec/studio_game/clumsy_player_spec.rb
87
+ - spec/studio_game/player_spec.rb
88
+ - spec/studio_game/beserk_player_spec.rb