scripts/csv_parser.rb
# use point generator lib to
# get random point values and insert
# them into the correct place in the array
use point generator lib to
get random point values and insert
them into the correct place in the array
use point generator lib to get random point values and insert them into the correct place in the array
def attach_points(round)
    num_answers = round.length() - 1
    gen = Generator.new({ number: num_answers })
    gen_points = gen.run
    i = 0
    until i > gen_points.length()
      unless gen_points[i].nil?
        round.insert(i + i + 2, gen_points[i])
      end
      i += 1
    end
    return round
  end
def attach_points ( round ) num_answers = round . length ( ) - 1 gen = Generator . new ( { number : num_answers } ) gen_points = gen . run i = 0 until i > gen_points . length ( ) unless gen_points [ i ] . nil? round . insert ( i + i + 2 , gen_points [ i ] ) end i += 1 end return round end
use point generator lib to
get random point values and insert
them into the correct place in the array
use point generator lib to get random point values and insert them into the correct place in the array
round
<not_specific>