scripts/score.rb
# Similarity with qwerty gets some points
Similarity with qwerty gets some points
Similarity with qwerty gets some points
def score_qwerty(layout)
    _score = 0
    layout.split('').each_index do |i|
      _score += QWERTY_BONUS_POINT if layout[i] == QWERTY[i]
    end
    _score
  end
def score_qwerty ( layout ) _score = 0 layout . split ( '' ) . each_index do | i | _score += QWERTY_BONUS_POINT if layout [ i ] == QWERTY [ i ] end _score end
Similarity with qwerty gets some points
Similarity with qwerty gets some points
layout
<not_specific>