Sha256: 7f7a606e8e29de1961bc020864e6c1bea75827db78a7b68fbab57a270356c55f

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

module Shared
  class Player
    attr_accessor :value, :name, :type, :difficulty_level

    def initialize(args = {})
      @name = args.fetch(:name, "Player 1")
      @type = args.fetch(:type, :human)
      @difficulty_level = args.fetch(:difficulty_level, nil)
      post_initialize(args)
    end

    def post_initialize(args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
games_bfox-0.3.0 lib/games/shared/player.rb
games_bfox-0.2.0 lib/games/shared/player.rb