missy-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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 43b9b15e9e87a3b17f30491730d3f698f3b1ff06a8f46dd490d2cdc67522bbb1
4
+ data.tar.gz: a9f8a44d0ecf80fe19e12cb270dc70578a02072b1ea1ae21771aec522c4b517a
5
+ SHA512:
6
+ metadata.gz: 31e06cb342731e700dfd5d2457f616b1aa653232d9fae59d78045b44809fee54094869e542d51dd1660a594af97b1b2936719e4dc2bb51cb0642b83565ddd85f
7
+ data.tar.gz: 271bd2843cbbc2ec5b2bacd19d8f120d4b71151f4e54ad3d96e829127a0b5acb18cc4436362da272a82351ab49de7abbdb46cbc0460a371efc300e3512fc501b
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2023 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
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
data/README ADDED
@@ -0,0 +1 @@
1
+ Gem that plays a game with multiple rounds and players. s
@@ -0,0 +1,3 @@
1
+ sabrina,28
2
+ adrianna, 27
3
+ catherine, 29
data/bin/players.csv ADDED
@@ -0,0 +1,4 @@
1
+ missy,100
2
+ kehley,101
3
+ kyle,99
4
+ anne,102
data/bin/studio_game ADDED
@@ -0,0 +1,32 @@
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
+ davies = StudioGame::Game.new("Davies")
8
+
9
+ default_player_file = File.join(File.dirname(__FILE__), 'players.csv')
10
+ davies.load_players(ARGV.shift || default_player_file)
11
+
12
+ klutz = StudioGame::ClumsyPlayer.new("klutz")
13
+ davies.add_player(klutz)
14
+ berserker = StudioGame::BerserkPlayer.new("berserker")
15
+ davies.add_player(berserker)
16
+
17
+ loop do
18
+ puts "How many game rounds? ('quit' to exit)"
19
+ answer = gets.chomp.downcase
20
+ case answer
21
+ when /^\d+$/
22
+ davies.play(answer.to_i)
23
+ when "quit", "exit"
24
+ davies.print_stats
25
+ break
26
+ else
27
+ puts "Please enter a number or 'quit'."
28
+ end
29
+ end
30
+
31
+ davies.save_high_scores
32
+
@@ -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 = 100)
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 "#{@name} is berserk!" if berserk?
18
+ end
19
+
20
+ def blam
21
+ berserk? ? w00t : super
22
+ end
23
+ end
24
+
25
+ if __FILE__ == $0
26
+ berserker = StudioGame::BerserkPlayer.new("berserker", 50)
27
+ 6.times { berserker.w00t }
28
+ 2.times { berserker.blam }
29
+ puts berserker.health
30
+ end
31
+ end
@@ -0,0 +1,26 @@
1
+ require_relative 'player'
2
+
3
+ module StudioGame
4
+ class ClumsyPlayer < Player
5
+ def found_treasure(treasure)
6
+ super(Treasure.new(treasure.name, treasure.points / 2.0))
7
+ end
8
+ end
9
+ end
10
+
11
+ if __FILE__ == $0
12
+ clumsy = StudioGame::ClumsyPlayer.new("klutz")
13
+
14
+ hammer = StudioGame::Treasure.new(:hammer, 50)
15
+ clumsy.found_treasure(hammer)
16
+ clumsy.found_treasure(hammer)
17
+ clumsy.found_treasure(hammer)
18
+
19
+ crowbar = StudioGame::Treasure.new(:crowbar, 400)
20
+ clumsy.found_treasure(crowbar)
21
+
22
+ clumsy.each_found_treasure do |treasure|
23
+ puts "#{treasure.points} total #{treasure.name} points"
24
+ end
25
+ puts "#{clumsy.points} grand total points"
26
+ end
@@ -0,0 +1,19 @@
1
+ require_relative 'auditable'
2
+
3
+ module StudioGame
4
+ class Die
5
+ include Auditable
6
+
7
+ attr_reader :number
8
+
9
+ def initialize
10
+ roll
11
+ end
12
+
13
+ def roll
14
+ @number = rand(1..6)
15
+ audit
16
+ @number
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,99 @@
1
+ require_relative 'player'
2
+ require_relative 'game_turn'
3
+ require_relative 'treasure_trove'
4
+
5
+ module StudioGame
6
+ class Game
7
+ attr_reader :title
8
+
9
+ def initialize(title)
10
+ @title = title.capitalize
11
+ @players = []
12
+ end
13
+
14
+ def load_players(from_file = "players.csv")
15
+ File.readlines(from_file).each do |line|
16
+ add_player(Player.from_csv(line))
17
+ end
18
+ end
19
+
20
+ def add_player(player)
21
+ @players << player
22
+ end
23
+
24
+ def play(rounds)
25
+ puts "There are #{@players.length} players in #{@title}:"
26
+
27
+ @players.each do |player|
28
+ puts player
29
+ end
30
+
31
+ treasures = TreasureTrove::TREASURES
32
+ puts "\nThere are #{treasures.size} treasures to be found:"
33
+ treasures.each { |treasure| puts "A #{treasure.name} is worth #{treasure.points} points." }
34
+
35
+ 1.upto(rounds) do |round|
36
+ puts "\nRound #{round}"
37
+ @players.each do |player|
38
+ GameTurn.take_turn(player)
39
+ puts player
40
+ end
41
+ end
42
+ end
43
+
44
+ def print_stats
45
+ strong, wimpy = @players.partition { |player| player.strong? }
46
+
47
+ puts "\n#{@title} Statistics:"
48
+ puts "\n#{strong.size} strong players:"
49
+ strong.each { |s| puts "#{s.name} (#{s.health})" }
50
+
51
+ puts "\n#{wimpy.size} wimpy players:"
52
+ wimpy.each { |w| puts "#{w.name} (#{w.health})" }
53
+
54
+ puts "\n#{@title} High Scores:"
55
+ @players.sort.each do |player|
56
+ puts high_score_entry(player)
57
+ end
58
+
59
+ @players.sort.each do |player|
60
+ puts "\n#{player.name}'s point totals:"
61
+
62
+ player.each_found_treasure do |treasure|
63
+ puts "#{treasure.points} total #{treasure.name} points"
64
+ end
65
+
66
+ puts "= #{player.points} GRAND TOTAL POINTS"
67
+ end
68
+ end
69
+
70
+ def save_high_scores(to_file = "high_scores.txt")
71
+ File.open(to_file, "w") do |f|
72
+ f.write "#{@title} High Scores:\n"
73
+ @players.sort.each do |player|
74
+ f.puts high_score_entry(player)
75
+ end
76
+ end
77
+ end
78
+
79
+ def high_score_entry(player)
80
+ "#{player.name.ljust(20, '.')} #{player.score}"
81
+ end
82
+ end
83
+ end
84
+
85
+ if __FILE__ == $0
86
+ davies = StudioGame::Game.new("davies")
87
+
88
+ player1 = StudioGame::Player.new("missy")
89
+ player2 = StudioGame::Player.new("kyle")
90
+ player3 = StudioGame::Player.new("kehley")
91
+ player4 = StudioGame::Player.new("anne")
92
+
93
+ davies.add_player(player1)
94
+ davies.add_player(player2)
95
+ davies.add_player(player3)
96
+ davies.add_player(player4)
97
+
98
+ davies.play(2)
99
+ end
@@ -0,0 +1,24 @@
1
+ require_relative 'die'
2
+ require_relative 'player'
3
+ require_relative 'treasure_trove'
4
+ require_relative 'loaded_die'
5
+
6
+ module StudioGame
7
+ module GameTurn
8
+ def self.take_turn(player)
9
+ number_rolled = Die.new.roll
10
+
11
+ case number_rolled
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
+ end
23
+ end
24
+ 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,21 @@
1
+ module StudioGame
2
+ module Playable
3
+ def w00t
4
+ self.health += 15
5
+ puts "#{name} got w00ted!"
6
+ end
7
+
8
+ def blam
9
+ self.health -= 10
10
+ puts "#{name} got blammed!"
11
+ end
12
+
13
+ def strong?
14
+ if self.health >= 100
15
+ true
16
+ else
17
+ false
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,60 @@
1
+ require_relative 'treasure_trove'
2
+ require_relative 'playable'
3
+
4
+ module StudioGame
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
+
17
+ def self.from_csv(line)
18
+ name, health = line.split(",")
19
+ Player.new(name, Integer(health))
20
+ end
21
+
22
+ def to_s
23
+ "I'm #{@name} with health = #{@health}, points = #{points}, and score = #{score}."
24
+ end
25
+
26
+ def score
27
+ @health + points
28
+ end
29
+
30
+ def <=>(other)
31
+ other.score <=> score
32
+ end
33
+
34
+ def found_treasure(treasure)
35
+ @found_treasures[treasure.name] += treasure.points
36
+ puts "#{@name} found a #{treasure.name} worth #{treasure.points}."
37
+ puts "#{name}'s treasures: #{@found_treasures}"
38
+ end
39
+
40
+ def points
41
+ @found_treasures.values.reduce(0, :+)
42
+ end
43
+
44
+ def each_found_treasure
45
+ @found_treasures.each do |key, value|
46
+ yield Treasure.new(key, value)
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ if __FILE__ == $0
53
+ player = StudioGame::Player.new("moe")
54
+ puts player.name
55
+ puts player.health
56
+ player.w00t
57
+ puts player.health
58
+ player.blam
59
+ puts player.health
60
+ end
@@ -0,0 +1,22 @@
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
19
+
20
+ if __FILE__ == $0
21
+ puts StudioGame::TreasureTrove::TREASURES
22
+ end
@@ -0,0 +1,38 @@
1
+ require 'studio_game/berserk_player'
2
+
3
+ module StudioGame
4
+ describe BerserkPlayer do
5
+
6
+ before do
7
+ $stdout = StringIO.new # This prevents the puts from showing in console.
8
+
9
+ @initial_health = 50
10
+ @player = BerserkPlayer.new("berserker", @initial_health)
11
+ end
12
+
13
+ it "does not go berserk when w00ted up to 5 times" do
14
+ 1.upto(5) { @player.w00t }
15
+
16
+ @player.berserk?.should be_false
17
+
18
+ # or if using Rspec 3.0:
19
+ # @player.berserk?.should be_falsey
20
+ end
21
+
22
+ it "goes berserk when w00ted more than 5 times" do
23
+ 1.upto(6) { @player.w00t }
24
+
25
+ @player.berserk?.should be_true
26
+
27
+ # or if using Rspec 3.0:
28
+ # @player.berserk?.should be_truthy
29
+ end
30
+
31
+ it "gets w00ted instead of blammed when it's gone berserk" do
32
+ 1.upto(6) { @player.w00t }
33
+ 1.upto(2) { @player.blam }
34
+
35
+ @player.health.should == @initial_health + (8 * 15)
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,34 @@
1
+ require 'studio_game/clumsy_player'
2
+
3
+ module StudioGame
4
+ describe ClumsyPlayer do
5
+ before do
6
+ $stdout = StringIO.new # This prevents the puts from showing in console.
7
+
8
+ @player = ClumsyPlayer.new("klutz")
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
+ end
34
+ end
@@ -0,0 +1,55 @@
1
+ require 'studio_game/game'
2
+
3
+ module StudioGame
4
+ describe Game do
5
+ before do
6
+ $stdout = StringIO.new # This prevents the puts from showing in console.
7
+
8
+ @game = Game.new("Knuckleheads")
9
+
10
+ @initial_health = 100
11
+ @player = Player.new("moe", @initial_health)
12
+ @rounds = 200
13
+
14
+ @game.add_player(@player)
15
+ end
16
+
17
+ it 'w00ts the player if a high number is rolled' do
18
+ Die.any_instance.stub(:roll).and_return(5)
19
+
20
+ @game.play(@rounds)
21
+
22
+ @player.health.should == @initial_health + (15 * @rounds)
23
+ end
24
+
25
+ it 'skips the player if a medium number is rolled' do
26
+ Die.any_instance.stub(:roll).and_return(3)
27
+
28
+ @game.play(@rounds)
29
+
30
+ @player.health.should == @initial_health
31
+ end
32
+
33
+ it 'blams the player when a low number is rolled' do
34
+ Die.any_instance.stub(:roll).and_return(1)
35
+
36
+ @game.play(@rounds)
37
+
38
+ @player.health.should == @initial_health - (10 * @rounds)
39
+ end
40
+
41
+ it "assigns a treasure for points during a player's turn" do
42
+ game = Game.new("Knuckleheads")
43
+ player = Player.new("moe")
44
+
45
+ game.add_player(player)
46
+
47
+ game.play(1)
48
+
49
+ player.points.should_not be_zero
50
+
51
+ # or use alternate expectation syntax:
52
+ # expect(player.points).not_to be_zero
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,125 @@
1
+ require "studio_game/player"
2
+
3
+ module StudioGame
4
+ describe Player do
5
+ before do
6
+ $stdout = StringIO.new # This prevents the puts from showing in console.
7
+
8
+ @initial_health = 150
9
+ @player = Player.new('missy', @initial_health)
10
+ end
11
+
12
+ it "has a capitalized name" do
13
+ @player.name.should == "Missy"
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 Missy 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
+ context "with health greater than 100" do
47
+ before do
48
+ @player = Player.new("Sally", 150)
49
+ end
50
+
51
+ it "is strong" do
52
+ @player.should be_strong
53
+ end
54
+ end
55
+
56
+ context "with health less than 100" do
57
+ before do
58
+ @player = Player.new("Joe", 80)
59
+ end
60
+
61
+ it "is not strong (is wimpy)" do
62
+ @player.should_not be_strong
63
+ end
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
+
80
+ it "computes points as the sum of all treasure points" do
81
+ @player.points.should == 0
82
+
83
+ @player.found_treasure(Treasure.new(:hammer, 50))
84
+
85
+ @player.points.should == 50
86
+
87
+ @player.found_treasure(Treasure.new(:crowbar, 400))
88
+
89
+ @player.points.should == 450
90
+
91
+ @player.found_treasure(Treasure.new(:hammer, 50))
92
+
93
+ @player.points.should == 500
94
+ end
95
+
96
+ it "yields each found treasure and its total points" do
97
+ @player.found_treasure(Treasure.new(:skillet, 100))
98
+ @player.found_treasure(Treasure.new(:skillet, 100))
99
+ @player.found_treasure(Treasure.new(:hammer, 50))
100
+ @player.found_treasure(Treasure.new(:bottle, 5))
101
+ @player.found_treasure(Treasure.new(:bottle, 5))
102
+ @player.found_treasure(Treasure.new(:bottle, 5))
103
+ @player.found_treasure(Treasure.new(:bottle, 5))
104
+ @player.found_treasure(Treasure.new(:bottle, 5))
105
+
106
+ yielded = []
107
+ @player.each_found_treasure do |treasure|
108
+ yielded << treasure
109
+ end
110
+
111
+ yielded.should == [
112
+ Treasure.new(:skillet, 200),
113
+ Treasure.new(:hammer, 50),
114
+ Treasure.new(:bottle, 25)
115
+ ]
116
+ end
117
+
118
+ it "creates a player from a csv line entry" do
119
+ line = "missy, 29"
120
+
121
+ Player.from_csv(line).name.should == "Missy"
122
+ Player.from_csv(line).health.should == 29
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,56 @@
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 broomstick 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
+
52
+ # or use alternate expectation syntax:
53
+ # expect(TreasureTrove::TREASURES).to include(treasure)
54
+ end
55
+ end
56
+ end
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: missy-studio-game
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Missy Davies following the Pragmatic Studio Ruby course tutorial
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-02-10 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: 2.8.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.8'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 2.8.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.8'
33
+ description: 'Gem that plays a game with multiple rounds and players. s
34
+
35
+ '
36
+ email: ms.melissadavies@gmail.com
37
+ executables:
38
+ - studio_game
39
+ extensions: []
40
+ extra_rdoc_files: []
41
+ files:
42
+ - LICENSE
43
+ - README
44
+ - bin/my_favorite_players.csv
45
+ - bin/players.csv
46
+ - bin/studio_game
47
+ - lib/studio_game/auditable.rb
48
+ - lib/studio_game/berserk_player.rb
49
+ - lib/studio_game/clumsy_player.rb
50
+ - lib/studio_game/die.rb
51
+ - lib/studio_game/game.rb
52
+ - lib/studio_game/game_turn.rb
53
+ - lib/studio_game/loaded_die.rb
54
+ - lib/studio_game/playable.rb
55
+ - lib/studio_game/player.rb
56
+ - lib/studio_game/treasure_trove.rb
57
+ - spec/studio_game/berserk_player_spec.rb
58
+ - spec/studio_game/clumsy_player_spec.rb
59
+ - spec/studio_game/game_spec.rb
60
+ - spec/studio_game/player_spec.rb
61
+ - spec/studio_game/treasure_trove_spec.rb
62
+ homepage: https://github.com/missy-davies/studio-game-gem
63
+ licenses:
64
+ - MIT
65
+ metadata: {}
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '1.9'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubygems_version: 3.0.3.1
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: Gem that plays a game with multiple rounds and players.
85
+ test_files:
86
+ - spec/studio_game/clumsy_player_spec.rb
87
+ - spec/studio_game/treasure_trove_spec.rb
88
+ - spec/studio_game/berserk_player_spec.rb
89
+ - spec/studio_game/player_spec.rb
90
+ - spec/studio_game/game_spec.rb