require 'csv'
require 'pry'
require 'colorize'

require './player.rb'
require './board.rb'

module Game
  class Play
    def initialize
      get_players
    end

    def get_players
      puts "Let's play Cards Against Humanity!"
      puts "How many players do you have?"
      num_players = gets.chomp.to_i
      count = 0
      players = []
      while count < num_players
        puts "Please enter a player's name:"
        player_name = gets.chomp
        count += 1
        players.push(player_name)
      end
      puts players
    end

    def play
      puts "Now we are playing!"
    end


  end
end

a = Game::Play.new
a.play

require 'csv'
require 'pry'
require 'colorize'

require './player.rb'
require './board.rb'

module Game
  class Play
    def initialize
      @players = get_players
    end

    def get_players
      puts "Let's play Cards Against Humanity!"
      puts "How many players do you have?"
      num_players = gets.chomp.to_i
      count = 0
      player_names = []
      while count < num_players
        puts "Please enter a player's name:"
        player_name = gets.chomp
        count += 1
        player_names.push(player_name)
      end
      players = []
      player_names.each do |name|
        player = Player.new(name)
        players.push(player)
      end
    end

    def play
      puts "Now we are playing!"
      puts @players
    end


  end
end

a = Game::Play.new
a.play

Initialize players from user input
Initialize players from user input
