app/controllers/pages_controller.rb
#create list with computer and all users in list so player can create room accessable to friends
create list with computer and all users in list so player can create room accessable to friends
create list with computer and all users in list so player can create room accessable to friends
def add_player_list
    @users = User.all
    @users = @users.collect { |user| [user.username, user.id] if user.room_id.nil? }
    @users.delete_if { |x| x.nil? }
    @users.unshift(["Computer", "computer"])
    return @users
  end
def add_player_list @users = User . all @users = @users . collect { | user | [ user . username , user . id ] if user . room_id . nil? } @users . delete_if { | x | x . nil? } @users . unshift ( [ "Computer" , "computer" ] ) return @users end
create list with computer and all users in list so player can create room accessable to friends
create list with computer and all users in list so player can create room accessable to friends
#do not collect users currently in a room #remove blank arrays from list