From 0b52d6dd991c18addb3c7fbff0174b8c7c2ba6cb Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 20 Feb 2013 22:27:40 -0500 Subject: [PATCH] log tab: show score for each word blipped --- main.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.coffee b/main.coffee index 12fb70d..7ea4a02 100644 --- a/main.coffee +++ b/main.coffee @@ -344,9 +344,10 @@ activate_selection = -> unless is_word word log "Not on word list: \"#{word}\"" return - score += Math.round(Math.pow(1.7, word.length)) + word_score = Math.round(Math.pow(1.7, word.length)) + score += word_score $score_display.html score - log "blipped: #{word}" + log "blipped \"#{word}\" for #{word_score} points" blip_selection() look_up_definition word $('#definition').click() if cur_tab is 'instructions' -- 1.7.10.4