Sha256: 0b646a2a4c58ccfa17c2f1c6d112053594e1ce9e52a5767c2e3120e20ebb9b9a
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
require_relative 'player' module TTT class PlayersFactory def generate_players(config) player_1 = TTT::Player.new(value: config.player_1_value, name: config.player_1_name, type: :human) player_2 = TTT::Player.new(value: config.player_2_value, name: config.player_2_name, type: config.player_2_type, difficulty_level: config.computer_difficulty_level) [player_1, player_2] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
games_bfox-0.3.0 | lib/games/tictactoe/players_factory.rb |
games_bfox-0.2.0 | lib/games/tictactoe/players_factory.rb |