Sha256: 0622bb4fd0fe1e202676bf49f333156af13351cff55a4b9ae43ef391fddfe4a6

Contents?: true

Size: 408 Bytes

Versions: 5

Compression:

Stored size: 408 Bytes

Contents

module Cardgame
  class Player
    def initialize
      @stack = Array.new
      @discard = Array.new
      @player_name = "Player"
    end

    def stack
      @stack
    end

    #def stack=(card)
    #  @stack = Array.new
    #  @stack << card
    #end

    def discard
      @discard
    end

    #def empty_discard
    #  @discard = Array.new
    #end

    def name
      @player_name
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
warcards-0.0.7 lib/warcards/player.rb
warcards-0.0.6 lib/warcards/player.rb
warcards-0.0.5 lib/warcards/player.rb
warcards-0.0.3 lib/warcards/player.rb
warcards-0.0.2 lib/warcards/player.rb