warcards 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/warcards.rb +6 -6
- data/lib/warcards/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/warcards.rb
CHANGED
@@ -4,9 +4,9 @@ require 'querinator'
|
|
4
4
|
module Cardgame
|
5
5
|
class Game
|
6
6
|
def initialize
|
7
|
-
@deck =
|
8
|
-
@player =
|
9
|
-
@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
|
-
|
18
|
+
@deck
|
19
19
|
end
|
20
20
|
|
21
21
|
def ai
|
22
|
-
|
22
|
+
@ai
|
23
23
|
end
|
24
24
|
|
25
25
|
def player
|
26
|
-
|
26
|
+
@player
|
27
27
|
end
|
28
28
|
|
29
29
|
def gameplay(args)
|
data/lib/warcards/version.rb
CHANGED
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.
|
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:
|
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:
|
265
|
+
hash: 28353792738006151
|
266
266
|
requirements: []
|
267
267
|
rubyforge_project:
|
268
268
|
rubygems_version: 1.8.24
|