warcards 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- warcards (0.0.6)
4
+ warcards (0.0.7)
5
5
  bundler (~> 1.1)
6
6
  querinator
7
7
  rake (~> 0.9.2)
@@ -4,9 +4,9 @@ require 'querinator'
4
4
  module Cardgame
5
5
  class Game
6
6
  def initialize
7
- @deck = deck
8
- @player = player
9
- @ai = ai
7
+ @deck = Deck.new
8
+ @player = Player.new
9
+ @ai = Ai.new
10
10
  @gameplay = gameplay(:deck => @deck, :player => @player, :ai => @ai)
11
11
  @gameplay.shuffle
12
12
  @gameplay.deal
@@ -15,15 +15,15 @@ module Cardgame
15
15
  end
16
16
 
17
17
  def deck
18
- Deck.new
18
+ @deck
19
19
  end
20
20
 
21
21
  def ai
22
- Ai.new
22
+ @ai
23
23
  end
24
24
 
25
25
  def player
26
- Player.new
26
+ @player
27
27
  end
28
28
 
29
29
  def gameplay(args)
@@ -1,5 +1,5 @@
1
1
  module Cardgame
2
2
 
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warcards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -253,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  segments:
255
255
  - 0
256
- hash: -2512632559911738122
256
+ hash: 28353792738006151
257
257
  required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  none: false
259
259
  requirements:
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  version: '0'
263
263
  segments:
264
264
  - 0
265
- hash: -2512632559911738122
265
+ hash: 28353792738006151
266
266
  requirements: []
267
267
  rubyforge_project:
268
268
  rubygems_version: 1.8.24