lib/warcards.rb in warcards-0.0.6 vs lib/warcards.rb in warcards-0.0.7

- old
+ new

@@ -2,29 +2,29 @@ require 'querinator' module Cardgame class Game def initialize - @deck = deck - @player = player - @ai = ai + @deck = Deck.new + @player = Player.new + @ai = Ai.new @gameplay = gameplay(:deck => @deck, :player => @player, :ai => @ai) @gameplay.shuffle @gameplay.deal @output = Struct.new(:winner, :player_feedback, :ai_feedback, :posed) @slow = TRUE end def deck - Deck.new + @deck end def ai - Ai.new + @ai end def player - Player.new + @player end def gameplay(args) deck = args[:deck] player = args[:player]