Sha256: 3cbb648c09392da501150bf31a23e173a87f162d7b0246bd9f5c0760931d5f53

Contents?: true

Size: 190 Bytes

Versions: 5

Compression:

Stored size: 190 Bytes

Contents

module LanguageCards
  module Helpers
    module GameHelper
      def calc_score c, i # correct, incorrect
        (0.001+c.to_i)*100.0/(c.to_i+i.to_i+0.001)*1.0
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
language_cards-0.3.2 lib/language_cards/helpers/game_helper.rb
language_cards-0.3.1 lib/language_cards/helpers/game_helper.rb
language_cards-0.3.0 lib/language_cards/helpers/game_helper.rb
language_cards-0.2.0 lib/language_cards/helpers/game_helper.rb
language_cards-0.1.3 lib/language_cards/helpers/game_helper.rb